ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/lib/AnyEvent/Handle.pm
(Generate patch)

Comparing AnyEvent/lib/AnyEvent/Handle.pm (file contents):
Revision 1.38 by root, Mon May 26 21:28:33 2008 UTC vs.
Revision 1.39 by root, Tue May 27 04:59:51 2008 UTC

375register_write_type netstring => sub { 375register_write_type netstring => sub {
376 my ($self, $string) = @_; 376 my ($self, $string) = @_;
377 377
378 sprintf "%d:%s,", (length $string), $string 378 sprintf "%d:%s,", (length $string), $string
379}; 379};
380
381=item json => $array_or_hashref
380 382
381=item AnyEvent::Handle::register_write_type type => $coderef->($self, @args) 383=item AnyEvent::Handle::register_write_type type => $coderef->($self, @args)
382 384
383This function (not method) lets you add your own types to C<push_write>. 385This function (not method) lets you add your own types to C<push_write>.
384Whenever the given C<type> is used, C<push_write> will invoke the code 386Whenever the given C<type> is used, C<push_write> will invoke the code

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines