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

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:
bufPointer to a block of memory to write.
lenNumber of bytes to write.

Reimplemented in PDelayChannel, PRFC822Channel, PInternetProtocol, PMemoryFile, PSSLChannel, PWAVFile, PQueueChannel, PTelnetSocket, PVXMLChannel, PEthSocket, PFile, PIndirectChannel, PSoundChannelDirectSound, PSoundChannelWin32, PPipeChannel, PStructuredFile, PSoundChannel, PTCPSocket, PUDPSocket, PSoundChannelBeOS, PSoundChannelCoreAudio, PVideoChannel, PSoundChannelALSA, PSoundChannelESD, PSoundChannelOSS, and PSoundChannelSunAudio.

Definition at line 505 of file ptlib.cxx.

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

{
  PAssertAlways(PUnimplementedFunction);
  return FALSE;
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index