QuakeForge  0.7.2.210-815cf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
net_main.c File Reference

Macros

#define dfunc   net_drivers[net_driverlevel]
 
#define sfunc   net_drivers[sock->driver]
 

Functions

qboolean NET_CanSendMessage (qsocket_t *sock)
 Check if a message can be sent to the connection. More...
 
qsocket_tNET_CheckNewConnections (void)
 Check for new connections. More...
 
void NET_Close (qsocket_t *sock)
 Close a connection. More...
 
qsocket_tNET_Connect (const char *host)
 Connect to a host. More...
 
void NET_FreeQSocket (qsocket_t *sock)
 Destroy a qsocket. More...
 
int NET_GetMessage (qsocket_t *sock)
 Read a single message from the connection into net_message. More...
 
void NET_Init (void)
 Initialize the networking sub-system. More...
 
qsocket_tNET_NewQSocket (void)
 Create and initialize a new qsocket. More...
 
void NET_Poll (void)
 Run any current poll procedures. More...
 
int NET_SendMessage (qsocket_t *sock, sizebuf_t *data)
 Send a single reliable message to the connection. More...
 
int NET_SendToAll (sizebuf_t *data, double blocktime)
 Send a reliable message to all attached clients. More...
 
int NET_SendUnreliableMessage (qsocket_t *sock, sizebuf_t *data)
 Send a single unreliable message to the connection. More...
 
void NET_Shutdown (void)
 Shutdown the UDP network interface. More...
 
void SchedulePollProcedure (PollProcedure *proc, double timeOffset)
 Schedule a poll procedure to run. More...
 
double SetNetTime (void)
 Cache the system time for the network sub-system. More...
 

Variables

int DEFAULTnet_hostport = 26000
 
hostcache_t hostcache [HOSTCACHESIZE]
 
int hostCacheCount = 0
 
cvar_thostname
 
int messagesReceived = 0
 
int messagesSent = 0
 
char my_tcpip_address [NET_NAMELEN]
 
int net_activeconnections = 0
 
qsocket_tnet_activeSockets = NULL
 
int net_driverlevel
 
qsocket_tnet_freeSockets = NULL
 
int net_hostport
 
qmsg_tnet_message = &_net_message
 
cvar_tnet_messagetimeout
 
int net_numsockets = 0
 
double net_time
 
qboolean recording = false
 
qboolean slistInProgress = false
 
qboolean slistLocal = true
 
PollProcedure slistPollProcedure = { NULL, 0.0, Slist_Poll }
 
PollProcedure slistSendProcedure = { NULL, 0.0, Slist_Send }
 
qboolean slistSilent = false
 
qboolean tcpipAvailable = false
 
int unreliableMessagesReceived = 0
 
int unreliableMessagesSent = 0
 
struct {
   int   op
 
   intptr_t   session
 
   double   time
 
vcrConnect
 
QFilevcrFile
 
struct {
   int   len
 
   int   op
 
   int   ret
 
   intptr_t   session
 
   double   time
 
vcrGetMessage
 
struct {
   int   op
 
   int   r
 
   intptr_t   session
 
   double   time
 
vcrSendMessage
 

Macro Definition Documentation

#define dfunc   net_drivers[net_driverlevel]
Examples:
vm-exec.c.
#define sfunc   net_drivers[sock->driver]

Variable Documentation

const char FAR int len
cvar_t* net_messagetimeout
int op
int r
qboolean recording = false
int ret
intptr_t session
PollProcedure slistPollProcedure = { NULL, 0.0, Slist_Poll }
PollProcedure slistSendProcedure = { NULL, 0.0, Slist_Send }
double time
struct { ... } vcrConnect
struct { ... } vcrGetMessage
struct { ... } vcrSendMessage