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

Comparing Coro/Event/Handle.pm (file contents):
Revision 1.12 by root, Fri Sep 28 13:58:58 2001 UTC vs.
Revision 1.13 by root, Tue Oct 9 23:51:39 2001 UTC

132do operations on the file handle you cannot do using the Coro::Handle 132do operations on the file handle you cannot do using the Coro::Handle
133interface. 133interface.
134 134
135=item $fh->rbuf 135=item $fh->rbuf
136 136
137Returns the current contents of the raed buffer (this is an lvalue, so you 137Returns the current contents of the read buffer (this is an lvalue, so you
138can change the read buffer if you like). 138can change the read buffer if you like).
139 139
140You can use this fucntion to implement your own optimized reader when neither 140You can use this function to implement your own optimized reader when neither
141readline nor sysread are viable candidates, like this: 141readline nor sysread are viable candidates, like this:
142 142
143 # first get the _real_ non-blocking filehandle 143 # first get the _real_ non-blocking filehandle
144 # and fetch the current contents of the read buffer 144 # and fetch the current contents of the read buffer
145 my $nb_fh = $fh->fh; 145 my $nb_fh = $fh->fh;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines