Commit Graph

12 Commits

Author SHA1 Message Date
Bruno Tavares
24b1335000 Better routing clean up. Now requires explicit message handling 2014-09-09 11:54:11 +01:00
Bruno Tavares
78c4ca959f Make the connection references weak references. 2014-09-03 18:22:22 +01:00
Bruno Tavares
73801c8488 interface methods to message commands on the connection 2014-09-03 11:03:14 +01:00
Bruno Tavares
7edb6bbfa0 Connection routing registry 2014-09-03 10:19:11 +01:00
Bruno Tavares
e8ca613154 Keep te original 'identified' callback 2014-09-03 09:59:46 +01:00
Pedro Melo
be0643be48 Make ::Reader use the new ::Client base class
Signed-off-by: Pedro Melo <melo@simplicidade.org>
2014-07-20 19:41:06 +01:00
Pedro Melo
bfa5a905d7 Add support for connect_timeout on both Reader and Connection constructors
Signed-off-by: Pedro Melo <melo@simplicidade.org>
2014-07-20 17:36:31 +01:00
Pedro Melo
be7b2c03d6 Add support for requeue_delay on constructors, used on REQ responses
Signed-off-by: Pedro Melo <melo@simplicidade.org>
2014-07-20 17:34:31 +01:00
Pedro Melo
dcca4aea33 Change API for the message callback return code:
* undef => mark as done (send FIN);
* -1 and above, send requeue, with value specifying
  the delay:
  * >= 0 => use value as delay, 0 is a special case, means immediatly;
  * -1 => use number of attempts times the requeue_delay constructor
    parameter.

Signed-off-by: Pedro Melo <melo@simplicidade.org>
2014-07-20 17:32:50 +01:00
Pedro Melo
6b86255149 Refactor Connection creation in Reader:
* easier to understand;
* added support for client_id and hostname from Reader => Connection.

Signed-off-by: Pedro Melo <melo@simplicidade.org>
2014-07-20 13:45:22 +01:00
Pedro Melo
d48cfc068f Add client_id and hostname parameters to Reader new()
Signed-off-by: Pedro Melo <melo@simplicidade.org>
2014-07-20 13:43:40 +01:00
Pedro Melo
9521132b8b Added rough subscriber code that works, lots of open issues
Signed-off-by: Pedro Melo <melo@simplicidade.org>
2014-07-20 10:27:43 +01:00