Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

iNetworkListener Struct Reference

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

#include <driver.h>

Inheritance diagram for iNetworkListener:

iNetworkEndPoint iBase List of all members.

Public Methods

virtual iNetworkConnectionAccept ()=0
 Accepts a connection request. More...


Detailed Description

This is the network listener interface for CS.

It represents a single network listening post. All network listeners must implement this interface.


Member Function Documentation

iNetworkConnection * iNetworkListener::Accept ( ) [pure virtual]
 

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 NULL. If the connection is non-blocking, NULL 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.


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