CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

iNetworkManager Struct Reference

The network manager polls for incoming data on connections registered with it and new connections on listeners registered with it. More...

#include <netman.h>

Inheritance diagram for iNetworkManager:

iBase List of all members.

Public Methods

virtual void RegisterConnectedSocket (iNetworkSocket2 *, iNetworkPacket *)=0
 Register a connection for polling with its associated packet. More...

virtual bool UnregisterConnectedSocket (iNetworkSocket2 *)=0
 Unregister a connection. More...

virtual void RegisterListeningSocket (iNetworkSocket2 *, iNetworkPacket *)=0
 Register a listener for polling with its associated packet. More...

virtual bool UnregisterListeningSocket (iNetworkSocket2 *)=0
 Unregister a listener. More...

virtual bool Send (iNetworkSocket2 *, iNetworkPacket *)=0
 Send a packet on a connected socket. More...

virtual bool SendToAll (iNetworkPacket *)=0
 Send a packet to all registered, connected sockets that iNetworkPacket::FilterSocket() returns true for. More...


Detailed Description

The network manager polls for incoming data on connections registered with it and new connections on listeners registered with it.

If data is waiting, it is added to the buffer of the packet associated with the connection. Once a packet is full, a network event is posted on the queue for the appliction to pick up. The event type is csevNetwork and event.Command.Info is a pointer to the packet where the data was stored.

Definition at line 78 of file netman.h.


Member Function Documentation

virtual void iNetworkManager::RegisterConnectedSocket iNetworkSocket2  ,
iNetworkPacket  
[pure virtual]
 

Register a connection for polling with its associated packet.

virtual void iNetworkManager::RegisterListeningSocket iNetworkSocket2  ,
iNetworkPacket  
[pure virtual]
 

Register a listener for polling with its associated packet.

virtual bool iNetworkManager::Send iNetworkSocket2  ,
iNetworkPacket  
[pure virtual]
 

Send a packet on a connected socket.

virtual bool iNetworkManager::SendToAll iNetworkPacket   [pure virtual]
 

Send a packet to all registered, connected sockets that iNetworkPacket::FilterSocket() returns true for.

virtual bool iNetworkManager::UnregisterConnectedSocket iNetworkSocket2   [pure virtual]
 

Unregister a connection.

virtual bool iNetworkManager::UnregisterListeningSocket iNetworkSocket2   [pure virtual]
 

Unregister a listener.


The documentation for this struct was generated from the following file:
Generated for Crystal Space by doxygen 1.2.14