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

Macros

#define ADDR_SIZE   4
 
#define MAXHOSTNAMELEN   256
 
#define SA_LEN(sa)   (sizeof(struct sockaddr_in))
 
#define SS_LEN(ss)   (sizeof(struct sockaddr_in))
 

Typedefs

typedef union address AF_address_t
 

Functions

 int (PASCAL FAR *pWSAStartup)(WORD wVersionRequired
 
struct hostent FAR *PASCAL FAR * pgethostbyaddr (const char FAR *addr, int len, int type)
 
struct hostent FAR *PASCAL FAR * pgethostbyname (const char FAR *name)
 
 SOCKET (PASCAL FAR *psocket)(int af
 
int WINS_AddrCompare (netadr_t *addr1, netadr_t *addr2)
 
const char * WINS_AddrToString (netadr_t *addr)
 
int WINS_Broadcast (int socket, byte *buf, int len)
 
int WINS_CheckNewConnections (void)
 
int WINS_CloseSocket (int socket)
 
int WINS_Connect (int socket, netadr_t *addr)
 
int WINS_GetAddrFromName (const char *name, netadr_t *addr)
 
int WINS_GetNameFromAddr (netadr_t *addr, char *name)
 
int WINS_GetSocketAddr (int socket, netadr_t *addr)
 
int WINS_GetSocketPort (netadr_t *addr)
 
int WINS_Init (void)
 
void WINS_Listen (qboolean state)
 
int WINS_OpenSocket (int port)
 
int WINS_Read (int socket, byte *buf, int len, netadr_t *from)
 
int WINS_SetSocketPort (netadr_t *addr, int port)
 
void WINS_Shutdown (void)
 
int WINS_Write (int socket, byte *buf, int len, netadr_t *to)
 

Variables

long u_long FAR * argp
 
char FAR * buf
 
long cmd
 
char FAR int int flags
 
char FAR int int struct
sockaddr FAR * 
from
 
char FAR int int struct
sockaddr FAR int FAR * 
fromlen
 
char FAR int len
 
int level
 
LPWSADATA lpWSAData
 
struct sockaddr FAR * name
 
int namelen
 
int int const char FAR int optlen
 
int int optname
 
int int const char FAR * optval
 
int int protocol
 
const char FAR int int const
struct sockaddr FAR * 
to
 
const char FAR int int const
struct sockaddr FAR int 
tolen
 
int type
 
int winsock_initialized = 0
 
qboolean winsock_lib_initialized
 
WSADATA winsockdata
 

Macro Definition Documentation

#define ADDR_SIZE   4
#define MAXHOSTNAMELEN   256
#define SA_LEN (   sa)    (sizeof(struct sockaddr_in))
#define SS_LEN (   ss)    (sizeof(struct sockaddr_in))

Typedef Documentation

typedef union address AF_address_t

Function Documentation

int ( PASCAL FAR *  pWSAStartup)
struct hostent FAR* PASCAL FAR* pgethostbyaddr ( const char FAR *  addr,
int  len,
int  type 
)
struct hostent FAR* PASCAL FAR* pgethostbyname ( const char FAR *  name)
SOCKET ( PASCAL FAR *  psocket)

Variable Documentation

long u_long FAR* argp
const char FAR * buf
long cmd
const char FAR int int flags
char FAR int int struct sockaddr FAR* from
char FAR int int struct sockaddr FAR int FAR* fromlen
const char FAR int len
int level
LPWSADATA lpWSAData
struct sockaddr FAR* name
struct sockaddr FAR int FAR * namelen
int int const char FAR int optlen
int int optname
int int const char FAR* optval
int int protocol
const char FAR int int const struct sockaddr FAR* to
const char FAR int int const struct sockaddr FAR int tolen
int type
qboolean winsock_lib_initialized