Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

BOOL PChannel::ReadAsync ( void *  buf,
PINDEX  len 
) [virtual, inherited]

Begin an asynchronous read from channel. The read timeout is used as in other read operations, in this case calling the OnReadComplete() function.

Note that if the channel is not capable of asynchronous read then this will do a sychronous read is in the Read() function with the addition of calling the OnReadComplete() before returning.

TRUE if the read was sucessfully queued.
buf  Pointer to a block of memory to receive the read bytes.
len  Maximum number of bytes to read into the buffer.

Definition at line 419 of file pchannel.cxx.

References PChannel::lastReadCount, PChannel::OnReadComplete(), and PChannel::Read().

  BOOL retVal = Read(buf, len);
  OnReadComplete(buf, lastReadCount);
  return retVal;

Generated by  Doxygen 1.6.0   Back to index