It represents a single network connection. All network connections must implement this interface.
Member Function Documentation
size_t iNetworkConnection::Receive (
void * buff,
size_t maxbytes ) [pure virtual]
Receive data from the connection.
If the connection is in blocking mode, then the function does not return until data has been read, an error has occurred, or the connection was closed. In non-blocking mode, Receive returns immediately. If data is available then it returns the number of bytes (<= maxbytes) which was read. If data is not available and the connection is non-blocking, then it returns 0 and GetLastError() returns CS_NET_ERR_NO_ERROR.
The documentation for this struct was generated from the following file: