doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Functions | Variables
posix_net.cpp File Reference
#include <signal.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <sys/param.h>
#include <sys/ioctl.h>
#include <sys/uio.h>
#include <errno.h>
#include <sys/select.h>
#include <net/if.h>
#include "../../idlib/precompiled.h"

Go to the source code of this file.

Classes

struct  net_interface
 

Macros

#define MAX_INTERFACES   32
 

Functions

bool Sys_StringToNetAdr (const char *s, netadr_t *a, bool doDNSResolve)
 
const char * Sys_NetAdrToString (const netadr_t a)
 
bool Sys_IsLANAddress (const netadr_t adr)
 
bool Sys_CompareNetAdrBase (const netadr_t a, const netadr_t b)
 
void Sys_InitNetworking (void)
 

Variables

idPort clientPort
 
idPort serverPort
 
idCVar net_ip ("net_ip","localhost", CVAR_SYSTEM,"local IP address")
 
idCVar net_port ("net_port","", CVAR_SYSTEM|CVAR_INTEGER,"local IP port number")
 
int num_interfaces = 0
 
net_interface netint [MAX_INTERFACES]
 

Macro Definition Documentation

#define MAX_INTERFACES   32

Definition at line 59 of file posix_net.cpp.

Function Documentation

bool Sys_CompareNetAdrBase ( const netadr_t  a,
const netadr_t  b 
)

Definition at line 248 of file posix_net.cpp.

void Sys_InitNetworking ( void  )

Definition at line 273 of file posix_net.cpp.

bool Sys_IsLANAddress ( const netadr_t  adr)

Definition at line 208 of file posix_net.cpp.

const char* Sys_NetAdrToString ( const netadr_t  a)

Definition at line 187 of file posix_net.cpp.

bool Sys_StringToNetAdr ( const char *  s,
netadr_t a,
bool  doDNSResolve 
)

Definition at line 171 of file posix_net.cpp.

Variable Documentation

idPort clientPort

Definition at line 49 of file posix_net.cpp.

idCVar net_ip("net_ip","localhost", CVAR_SYSTEM,"local IP address")
idCVar net_port("net_port","", CVAR_SYSTEM|CVAR_INTEGER,"local IP port number")

Definition at line 61 of file posix_net.cpp.

int num_interfaces = 0

Definition at line 60 of file posix_net.cpp.

idPort serverPort

Definition at line 49 of file posix_net.cpp.