mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-04-23 08:29:15 +00:00
Fix many bugs in the initial code
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user