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.
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.
Pointer to a block of memory to receive the read bytes. |
Maximum number of bytes to read into the buffer. |
Reimplemented in PDelayChannel, PInternetProtocol, PMemoryFile, PSSLChannel, PWAVFile, PQueueChannel, PTelnetSocket, PEthSocket, PFile, PIndirectChannel, PPipeChannel, PStructuredFile, PSocket, PSoundChannel, PTCPSocket, PUDPSocket, and PVideoChannel.
Definition at line 498 of file ptlib.cxx.
Referenced by PChannel::Read(), PChannel::ReadAsync(), PChannel::ReadBlock(), PChannel::ReadChar(), and PChannel::ReadString().