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

BOOL PIndirectChannel::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.

This will use the writeChannel# pointer to actually do the write. If writeChannel# is null the this asserts.

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:
buf  Pointer to a block of memory to write.
len  Number of bytes to write.

Reimplemented from PChannel.

Reimplemented in PDelayChannel, PRFC822Channel, PInternetProtocol, and PSSLChannel.

Definition at line 836 of file pchannel.cxx.

Referenced by PInternetProtocol::Write(), PRFC822Channel::Write(), and PDelayChannel::Write().


Generated by  Doxygen 1.6.0   Back to index