22 lines
473 B
C
22 lines
473 B
C
//=======================================================================
|
|
// Copyright XashXT Group 2010 Š
|
|
// netadr.h - net address local struct
|
|
//=======================================================================
|
|
#ifndef NETADR_H
|
|
#define NETADR_H
|
|
|
|
typedef enum
|
|
{
|
|
NA_LOOPBACK,
|
|
NA_BROADCAST,
|
|
NA_IP
|
|
} netadrtype_t;
|
|
|
|
typedef struct netadr_s
|
|
{
|
|
netadrtype_t type;
|
|
unsigned char ip[4];
|
|
unsigned short port;
|
|
} netadr_t;
|
|
|
|
#endif//NETADR_H
|