#include <driver.h>
Inheritance diagram for iNetworkDriver:
Public Methods | |
virtual iNetworkConnection* | NewConnection (const char *target, bool reliable, bool blocking)=0 |
Create a new network connection. More... | |
virtual iNetworkListener* | NewListener (const char *source, bool reliable, bool blockingListener, bool blockingConnection)=0 |
Create a new network listener. More... | |
virtual csNetworkDriverCapabilities | GetCapabilities () const=0 |
Get network driver capabilities. More... | |
virtual csNetworkDriverError | GetLastError () const=0 |
Retrieve the code for the last error encountered. |
It represents a plug-in network driver module. All network drivers must implement this interface.
|
Get network driver capabilities. This function returns information describing the capabilities of the driver. |
|
Create a new network connection. The 'target' parameter is driver dependent. For example, with a socket driver, the target might be "host:port#"; with a modem driver it might be "comport:phone#"; etc. The 'reliable' flag determines whether a reliable connection is made (sometimes known as connection-oriented) or an unreliable one (sometimes known as connectionless). The 'blocking' flag determines whether operations on the connection return immediately in all cases or wait until the operation can be completed successfully. Returns the new connection object or NULL if the connection failed. |
|
Create a new network listener. The 'source' parameter is driver dependent. For example, with a socket driver, the target might be "port#"; with a modem driver it might be "comport"; etc. The 'reliable' determines whether or not a reliable connection is made. The 'blockingListener' flag determines whether or not the Accept() method blocks while when called. The 'blockingConnection' flag determines whether or not methods in the resulting connection object block. |