Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

iNetworkDriver Struct Reference

This is the network driver interface for CS. More...

#include <driver.h>

Inheritance diagram for iNetworkDriver:

iBase List of all members.

Public Methods

virtual iNetworkConnectionNewConnection (const char *target, bool reliable, bool blocking)=0
 Create a new network connection. More...

virtual iNetworkListenerNewListener (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.


Detailed Description

This is the network driver interface for CS.

It represents a plug-in network driver module. All network drivers must implement this interface.


Member Function Documentation

csNetworkDriverCapabilities iNetworkDriver::GetCapabilities ( ) const [pure virtual]
 

Get network driver capabilities.

This function returns information describing the capabilities of the driver.

iNetworkConnection * iNetworkDriver::NewConnection ( const char * target,
bool reliable,
bool blocking ) [pure virtual]
 

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.

iNetworkListener * iNetworkDriver::NewListener ( const char * source,
bool reliable,
bool blockingListener,
bool blockingConnection ) [pure virtual]
 

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.


The documentation for this struct was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000