CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File 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 csPtr< 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.

Definition at line 110 of file inetwork/driver.h.


Member Function Documentation

virtual csPtr<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.14