diff options
| author | Ray <[email protected]> | 2020-02-20 12:42:37 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2020-02-20 12:42:37 +0100 |
| commit | e176a476c0abcdd8d7b1b9e369a2548c11d6e0dd (patch) | |
| tree | 83049dda9f445919f851fc7e331b4629b29efe80 /examples/network/network_test.c | |
| parent | 19390eaf097f2f78b7af188ece92f73388381cb6 (diff) | |
| download | raylib-e176a476c0abcdd8d7b1b9e369a2548c11d6e0dd.tar.gz raylib-e176a476c0abcdd8d7b1b9e369a2548c11d6e0dd.zip | |
[rnet] Review network examples formatting
Diffstat (limited to 'examples/network/network_test.c')
| -rw-r--r-- | examples/network/network_test.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/examples/network/network_test.c b/examples/network/network_test.c index 52824474..2307410e 100644 --- a/examples/network/network_test.c +++ b/examples/network/network_test.c @@ -123,11 +123,12 @@ int main(void) InitWindow(screenWidth, screenHeight, "raylib [network] example - network test");
- // Run the tests
- test_network_initialise();
+ InitNetworkDevice(); // Init network communications
+
+ // Run some tests
test_resolve_host();
//test_socket_create();
- test_resolve_ip();
+ //test_resolve_ip();
SetTargetFPS(60); // Set our game to run at 60 frames-per-second
//--------------------------------------------------------------------------------------
@@ -145,8 +146,8 @@ int main(void) BeginDrawing();
ClearBackground(RAYWHITE);
-
- DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY);
+
+ // TODO: Draw relevant connection info
EndDrawing();
//----------------------------------------------------------------------------------
@@ -154,7 +155,9 @@ int main(void) // De-Initialization
//--------------------------------------------------------------------------------------
- CloseWindow(); // Close window and OpenGL context
+ CloseNetworkDevice(); // Close network communication
+
+ CloseWindow(); // Close window and OpenGL context
//--------------------------------------------------------------------------------------
return 0;
|
