X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=netconn.h;h=bbd1b88ed1cb3de1498bc284d78f0efa5e7490de;hp=e798cfda32dac900bc8fea330c3023593df935a8;hb=bf7fdc26371e2823650c8af6d78ef1e28513f7eb;hpb=123d759d4e8793229127f44661afe7c1960fae99 diff --git a/netconn.h b/netconn.h index e798cfda..bbd1b88e 100755 --- a/netconn.h +++ b/netconn.h @@ -185,6 +185,10 @@ typedef struct netconn_s } qw; + // this tracks which of the last 100 received packet sequence numbers were lost + int packetlostcounter; + unsigned char packetlost[100]; + char address[128]; } netconn_t; @@ -301,21 +305,6 @@ extern int serverlist_cachecount; extern qboolean serverlist_consoleoutput; -#if !defined(_WIN32) && !defined(__linux__) && !defined(SUNOS) -#ifndef htonl -extern unsigned long htonl (unsigned long hostlong); -#endif -#ifndef htons -extern unsigned short htons (unsigned short hostshort); -#endif -#ifndef ntohl -extern unsigned long ntohl (unsigned long netlong); -#endif -#ifndef ntohs -extern unsigned short ntohs (unsigned short netshort); -#endif -#endif - //============================================================================ // // public network functions