ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent-MP/MP/Transport.pm
(Generate patch)

Comparing AnyEvent-MP/MP/Transport.pm (file contents):
Revision 1.17 by root, Tue Aug 4 14:10:51 2009 UTC vs.
Revision 1.18 by root, Tue Aug 4 18:33:30 2009 UTC

280 280
281sub error { 281sub error {
282 my ($self, $msg) = @_; 282 my ($self, $msg) = @_;
283 283
284 if ($self->{node} && $self->{node}{transport} == $self) { 284 if ($self->{node} && $self->{node}{transport} == $self) {
285 $self->{node}->fail (transport_error => $msg);
285 $self->{node}->clr_transport; 286 $self->{node}->clr_transport;
286 } 287 }
287 $AnyEvent::MP::Base::WARN->("$self->{peerhost}:$self->{peerport}: $msg"); 288 $AnyEvent::MP::Base::WARN->("$self->{peerhost}:$self->{peerport}: $msg");
288 $self->destroy; 289 $self->destroy;
289} 290}
345 346
346The fixed strings are: 347The fixed strings are:
347 348
348=over 4 349=over 4
349 350
350=item C<aemp> 351=item protocol identification
351 352
352The constant C<aemp> to identify the protocol. 353The constant C<aemp> to identify the protocol.
353 354
354=item protocol version 355=item protocol version
355 356
356The protocol version supported by this end, currently C<0>. If the 357The protocol version supported by this end, currently C<0>. If the
357versions don't match then no communication is possible. Minor extensions 358versions don't match then no communication is possible. Minor extensions
358are supposed to be handled by addign additional key-value pairs. 359are supposed to be handled through additional key-value pairs.
359 360
360=item a token uniquely identifying the current node instance 361=item a token uniquely identifying the current node instance
361 362
362This is a string that must change between restarts. It usually contains 363This is a string that must change between restarts. It usually contains
363things like the current time, the (OS) process id or similar values, but 364things like the current time, the (OS) process id or similar values, but
513 > sRG8bbc4TDbkpvH8FTP4HBs87OhepH6VuApoZqXXskuG 514 > sRG8bbc4TDbkpvH8FTP4HBs87OhepH6VuApoZqXXskuG
514 < aemp;0;nmpKd+gh;127.0.0.1:1235,[::1]:1235;hmac_md6_64_256,cleartext;json,storable;provider=AE-0.0;peeraddr=127.0.0.1:58760 515 < aemp;0;nmpKd+gh;127.0.0.1:1235,[::1]:1235;hmac_md6_64_256,cleartext;json,storable;provider=AE-0.0;peeraddr=127.0.0.1:58760
515 < dCEUcL/LJVSTJcx8byEsOzrwhzJYOq+L3YcopA5T6EAo 516 < dCEUcL/LJVSTJcx8byEsOzrwhzJYOq+L3YcopA5T6EAo
516 > hmac_md6_64_256;9513d4b258975accfcb2ab7532b83690e9c119a502c612203332a591c7237788;json 517 > hmac_md6_64_256;9513d4b258975accfcb2ab7532b83690e9c119a502c612203332a591c7237788;json
517 < hmac_md6_64_256;0298d6ba2240faabb2b2e881cf86b97d70a113ca74a87dc006f9f1e9d3010f90;json 518 < hmac_md6_64_256;0298d6ba2240faabb2b2e881cf86b97d70a113ca74a87dc006f9f1e9d3010f90;json
518 > ["","wkp","pinger","10.0.0.1:4040#nndKd+gn.a","resolved"] 519 > ["","lookup","pinger","10.0.0.1:4040#nndKd+gn.a","resolved"]
519 520
520=head1 SEE ALSO 521=head1 SEE ALSO
521 522
522L<AnyEvent>. 523L<AnyEvent>.
523 524

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines