Use SO_RCVTIMEO to avoid the overhead of an extra syscall per packet

This commit is contained in:
Cameron Gutman committed 2018-07-16 00:46:40 -07:00
1 parent a9438d1f5e
commit 6e7965f013
5 files changed
+71 -21

No files matched your search

+2
View File
@@ -34,6 +34,8 @@ extern int HighQualitySurroundEnabled;
#define isBefore24(x, y) (U24((x) - (y)) > (UINT24_MAX/2))
#define isBefore32(x, y) (U32((x) - (y)) > (UINT32_MAX/2))
#define UDP_RECV_POLL_TIMEOUT_MS 100
int serviceEnetHost(ENetHost* client, ENetEvent* event, enet_uint32 timeoutMs);
int extractVersionQuadFromString(const char* string, int* quad);
int isReferenceFrameInvalidationEnabled(void);