Wrap enet_host_service() to hide the logic required to make retransmissions work

This commit is contained in:
Cameron Gutman committed 2016-04-18 16:27:50 -04:00
1 parent 33deb0fe1a
commit d5e0950ec6
4 files changed
+29 -6

No files matched your search

+3
View File
@@ -6,6 +6,8 @@
#include "PlatformThreads.h"
#include "Video.h"
#include <enet/enet.h>
// Common globals
extern char* RemoteAddrString;
extern struct sockaddr_storage RemoteAddr;
@@ -18,6 +20,7 @@ extern AUDIO_RENDERER_CALLBACKS AudioCallbacks;
extern int NegotiatedVideoFormat;
int isBeforeSignedInt(int numA, int numB, int ambiguousCase);
int serviceEnetHost(ENetHost* client, ENetEvent* event, enet_uint32 timeoutMs);
void fixupMissingCallbacks(PDECODER_RENDERER_CALLBACKS* drCallbacks, PAUDIO_RENDERER_CALLBACKS* arCallbacks,
PCONNECTION_LISTENER_CALLBACKS* clCallbacks);