#include "lhnet.h"
-#define NET_NAMELEN 128
-
-#define NET_MAXMESSAGE 65536
#define NET_HEADERSIZE (2 * sizeof(unsigned int))
-#define NET_DATAGRAMSIZE (MAX_DATAGRAM + NET_HEADERSIZE)
// NetHeader flags
#define NETFLAG_LENGTH_MASK 0x0000ffff
lhnetsocket_t *mysocket;
lhnetaddress_t peeraddress;
-
+
// this is mostly identical to qsocket_t from quake
// if this time is reached, kick off peer
int receiveMessageLength;
qbyte receiveMessage[NET_MAXMESSAGE];
- char address[NET_NAMELEN];
+ char address[128];
} netconn_t;
extern netconn_t *netconn_list;
extern sizebuf_t net_message;
-extern cvar_t cl_fakelocalping_min;
-extern cvar_t cl_fakelocalping_max;
+extern cvar_t cl_netlocalping;
int NetConn_SendReliableMessage(netconn_t *conn, sizebuf_t *data);
//void NetConn_SendMessageNext(netconn_t *conn);