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

BOOL PIndirectChannel::Read ( void *  buf,
PINDEX  len 
) [virtual, inherited]

Low level read from the channel. This function may block until the requested number of characters were read or the read timeout was reached. The GetLastReadCount() function returns the actual number of bytes read.

This will use the readChannel# pointer to actually do the read. If readChannel# is null the this asserts.

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

TRUE indicates that at least one character was read from the channel. FALSE means no bytes were read due to timeout or some other I/O error.
bufPointer to a block of memory to receive the read bytes.
lenMaximum number of bytes to read into the buffer.

Reimplemented from PChannel.

Reimplemented in PDelayChannel, PInternetProtocol, PSSLChannel, and PVXMLChannel.

Definition at line 813 of file pchannel.cxx.

Referenced by PInternetProtocol::ReadLine().

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index