… | |
… | |
37 | use AnyEvent::Socket (); |
37 | use AnyEvent::Socket (); |
38 | use AnyEvent::Handle 4.92 (); |
38 | use AnyEvent::Handle 4.92 (); |
39 | |
39 | |
40 | use AnyEvent::MP::Config (); |
40 | use AnyEvent::MP::Config (); |
41 | |
41 | |
42 | our $PROTOCOL_VERSION = 0; |
42 | our $PROTOCOL_VERSION = 1; |
43 | |
43 | |
44 | our @HOOK_CONNECT; # called at connect/accept time |
44 | our @HOOK_CONNECT; # called at connect/accept time |
45 | our @HOOK_GREETING; # called at greeting1 time |
45 | our @HOOK_GREETING; # called at greeting1 time |
46 | our @HOOK_CONNECTED; # called at data phase |
46 | our @HOOK_CONNECTED; # called at data phase |
47 | our @HOOK_DESTROY; # called at destroy time |
47 | our @HOOK_DESTROY; # called at destroy time |
… | |
… | |
417 | |
417 | |
418 | The constant C<aemp> to identify this protocol. |
418 | The constant C<aemp> to identify this protocol. |
419 | |
419 | |
420 | =item protocol version |
420 | =item protocol version |
421 | |
421 | |
422 | The protocol version supported by this end, currently C<0>. If the |
422 | The protocol version supported by this end, currently C<1>. If the |
423 | versions don't match then no communication is possible. Minor extensions |
423 | versions don't match then no communication is possible. Minor extensions |
424 | are supposed to be handled through additional key-value pairs. |
424 | are supposed to be handled through additional key-value pairs. |
425 | |
425 | |
426 | =item the node ID |
426 | =item the node ID |
427 | |
427 | |