X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=lhnet.h;h=c865f9a9835f51b0a2766fc67af9ed22914116f4;hp=b9868a190bcda42ff7aef508297651f5606c70bf;hb=6148e497eca98a1816ff1bd9d890c06c04fd2b16;hpb=0a2edb85ad96a5fe17d5c3d694e70ab8aaf65def diff --git a/lhnet.h b/lhnet.h index b9868a19..c865f9a9 100644 --- a/lhnet.h +++ b/lhnet.h @@ -16,7 +16,11 @@ typedef struct lhnetaddress_loop_s lhnetaddress_loop_t; #define LHNETADDRESSTYPE_INET4_FAMILY 2 +#ifdef WIN32 +#define LHNETADDRESSTYPE_INET6_FAMILY 23 +#else #define LHNETADDRESSTYPE_INET6_FAMILY 10 +#endif // compatible with sockaddr_in typedef struct lhnetaddress_inet4_s @@ -70,6 +74,7 @@ lhnetsocket_t; void LHNET_Init(void); void LHNET_Shutdown(void); +void LHNET_SleepUntilPacket_Microseconds(int microseconds); lhnetsocket_t *LHNET_OpenSocket_Connectionless(lhnetaddress_t *address); void LHNET_CloseSocket(lhnetsocket_t *lhnetsocket); lhnetaddress_t *LHNET_AddressFromSocket(lhnetsocket_t *sock);