note: wip commit, in-progress

added tcp/udp structs
added serialisation
fixed vcxproj
updated ping-pong
This commit is contained in:
Jak Barnes 2019-02-20 01:12:33 +00:00
commit 4c9057cec2

View file

@ -20,7 +20,7 @@
*
********************************************************************************************/
#include "raylib.h"
#include "raylib.h"
int main()
{
@ -31,11 +31,15 @@ int main()
screenWidth, screenHeight, "raylib [network] example - ping pong");
SetTargetFPS(60);
SetTraceLogLevel(LOG_DEBUG);
// Networking
InitNetwork();
ResolveHost("www.google.com");
ResolveIP("2001:4860:4860::8888");
ResolveIP("8.8.8.8");
InitNetwork();
AddressInformation addr;
ResolveHost(&addr, "www.google.com", NULL, SOCKET_TCP);
ResolveIP("8.8.8.8", NULL);
ResolveIP("2001:4860:4860::8888", "80");
// Main game loop
while (!WindowShouldClose())