diff options
author | StapleButter <thetotalworm@gmail.com> | 2017-12-18 23:24:45 +0100 |
---|---|---|
committer | StapleButter <thetotalworm@gmail.com> | 2017-12-18 23:24:45 +0100 |
commit | 3bdb7a7f2de849b29d402d2b8e7428155e99ba28 (patch) | |
tree | 5c6684d0010976f141f945a9bcc77ebe46e5a063 /src/libui_sdl | |
parent | 0ff67d28d3e172220e1cdbb9697f8dc962eeccd4 (diff) |
hook up the LAN (pcap) interface
Diffstat (limited to 'src/libui_sdl')
-rw-r--r-- | src/libui_sdl/Platform.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libui_sdl/Platform.cpp b/src/libui_sdl/Platform.cpp index c5985de..f84f8f4 100644 --- a/src/libui_sdl/Platform.cpp +++ b/src/libui_sdl/Platform.cpp @@ -408,11 +408,11 @@ int LAN_SendPacket(u8* data, int len) void LAN_RXCallback(u_char* blarg, const struct pcap_pkthdr* header, const u_char* data) { + while (PCapRXNum > 0); + PCapPacketLen = header->len; memcpy(PCapPacketBuffer, data, PCapPacketLen); PCapRXNum = 1; - - printf("received shit\n"); } int LAN_RecvPacket(u8* data) |