Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals   Related Pages  

net_manager_c Class Reference

the network manager

#include <net.h>


Public Methods

void set_frametime (ulong t)
 set time between server frames ms

void start_listen (ushort port, bool local)
 listen on a port

void stop_listen ()
 stop listening

void broadcast (net_message_header_t *msg)
 send a message to all clients

void unicast (ulong clnum, net_message_header_t *msg)
 send a message to one client

void cl_sendmessage (net_message_header_t *msg)
 send a message to the server


Protected Attributes

array_c< net_client_c > * clients
 all connected clients

SOCKET sv_socket
 socket to receive connections

ulong sv_lastupdate
 time of last server frame

ulong sv_gametime
 current time of server

SOCKET cl_socket
 socket which connects to a server

ulong frametime
 time between server frames in ms

ulong cl_lastupdate
 time of last server frame

ulong cl_connecttime
 time of connection

WSADATA wsadata
 Winsock data.

bool isserver
 true if listening

bool isclient
 true if connected to a server


The documentation for this class was generated from the following files:
Generated on Wed Dec 18 15:48:49 2002 for omicron engine by doxygen1.2.18