]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - netconn.h
no time to explain, more changes on the path to q3bsp support
[xonotic/darkplaces.git] / netconn.h
index 26a4ce864c646a2012a0177ab9920e460fc5bab7..c1d1e6708a2afb1b90558d482b62f93bedf0d00d 100755 (executable)
--- a/netconn.h
+++ b/netconn.h
@@ -122,7 +122,10 @@ typedef struct netconn_s
        lhnetaddress_t peeraddress;
 
        // this is mostly identical to qsocket_t from quake
+
+       // if this time is reached, kick off peer
        double connecttime;
+       double timeout;
        double lastMessageTime;
        double lastSendTime;
 
@@ -190,6 +193,9 @@ extern unsigned short ntohs (unsigned short netshort);
 
 extern sizebuf_t net_message;
 
+extern cvar_t cl_fakelocalping_min;
+extern cvar_t cl_fakelocalping_max;
+
 int NetConn_SendReliableMessage(netconn_t *conn, sizebuf_t *data);
 //void NetConn_SendMessageNext(netconn_t *conn);
 //void NetConn_ReSendMessage(netconn_t *conn);
@@ -206,6 +212,7 @@ void NetConn_Shutdown(void);
 netconn_t *NetConn_Open(lhnetsocket_t *mysocket, lhnetaddress_t *peeraddress);
 void NetConn_Close(netconn_t *conn);
 void NetConn_Listen(qboolean state);
+int NetConn_IsLocalGame(void);
 //int NetConn_ReceivedMessage(netconn_t *conn, qbyte *data, int length);
 //int NetConn_ClientParsePacket(lhnetsocket_t *mysocket, qbyte *data, int length, lhnetaddress_t *peeraddress);
 //int NetConn_ServerParsePacket(lhnetsocket_t *mysocket, qbyte *data, int length, lhnetaddress_t *peeraddress);