Fix many bugs in the initial code

This commit is contained in:
Cameron Gutman
2014-01-19 01:20:54 -05:00
parent 2e971e102a
commit 979a439504
3 changed files with 14 additions and 5 deletions

View File

@@ -1,5 +1,6 @@
#include "PlatformSockets.h"
#include "PlatformThreads.h"
const char HELLO [] = {
0x07, 0x00, 0x00, 0x00,
@@ -36,6 +37,8 @@ int performHandshake(IP_ADDRESS host) {
return LastSocketError();
}
enableNoDelay(s);
err = send(s, HELLO, sizeof(HELLO), 0);
if (err == SOCKET_ERROR) {
goto CleanupError;