Logo Search packages:      
Sourcecode: pwlib version File versions

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

Low level write to the channel. This function will block until the requested number of characters are written or the write timeout is reached. The GetLastWriteCount() function returns the actual number of bytes written.

The GetErrorCode() function should be consulted after Write() returns FALSE to determine what caused the failure.

Returns:
TRUE if at least len bytes were written to the channel.
Parameters:
len  Pointer to a block of memory to write. Number of bytes to write.

Reimplemented in PDelayChannel, PRFC822Channel, PInternetProtocol, PMemoryFile, PSSLChannel, PWAVFile, PQueueChannel, PTelnetSocket, PEthSocket, PFile, PIndirectChannel, PPipeChannel, PStructuredFile, PSoundChannel, PTCPSocket, PUDPSocket, and PVideoChannel.

Definition at line 491 of file ptlib.cxx.

Referenced by PChannel::WriteAsync(), PChannel::WriteChar(), and PChannel::WriteString().

{
  PAssertAlways(PUnimplementedFunction);
  return FALSE;
}


Generated by  Doxygen 1.6.0   Back to index