Logo Search packages:      
Sourcecode: pwlib version File versions

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

Begin an asynchronous write from channel. The write timeout is used as in other write operations, in this case calling the OnWriteComplete() function. Note that if the channel is not capable of asynchronous write then this will do a sychronous write as in the Write() function with the addition of calling the OnWriteComplete() before returning.

Returns:
TRUE of the write operation was succesfully queued.
Parameters:
buf  Pointer to a block of memory to write.
len  Number of bytes to write.

Definition at line 440 of file pchannel.cxx.

References PChannel::lastWriteCount, PChannel::OnWriteComplete(), and PChannel::Write().

Referenced by PEthSocket::Write().

{
  BOOL retVal = Write(buf, len);
  OnWriteComplete(buf, lastWriteCount);
  return retVal;
}


Generated by  Doxygen 1.6.0   Back to index