![]() |
Public API Reference |
#include <driver.h>
Inheritance diagram for iNetworkListener:
Public Methods | |
virtual csPtr< iNetworkConnection > | Accept ()=0 |
Accepts a connection request. More... |
It represents a single network listening post. All network listeners must implement this interface.
Definition at line 134 of file inetwork/driver.h.
|
Accepts a connection request. If the listener is in blocking mode, then the function does not return until a connection has been established or an error has occurred. If in non-blocking mode, then it returns immediately. The return value is either an accepted connection or 0. If the connection is non-blocking, 0 is returned, and GetLastError() returns CS_NET_ERR_NO_ERROR then no connection was pending. Otherwise an error occurred, and GetLastError() returns the appropriate error code. |