diff options
| author | Ray <[email protected]> | 2020-02-20 13:46:33 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2020-02-20 13:46:33 +0100 |
| commit | 42dad5df9584e83b22d3eeb6e6f158e7125040fa (patch) | |
| tree | 907278ba26dc41b48682e34123123e9389e0e90d /examples/network/network_ping_pong.c | |
| parent | e176a476c0abcdd8d7b1b9e369a2548c11d6e0dd (diff) | |
| download | raylib-42dad5df9584e83b22d3eeb6e6f158e7125040fa.tar.gz raylib-42dad5df9584e83b22d3eeb6e6f158e7125040fa.zip | |
[rnet] Renamed some functions
Diffstat (limited to 'examples/network/network_ping_pong.c')
| -rw-r--r-- | examples/network/network_ping_pong.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/network/network_ping_pong.c b/examples/network/network_ping_pong.c index a56cafe8..22aaa69e 100644 --- a/examples/network/network_ping_pong.c +++ b/examples/network/network_ping_pong.c @@ -131,7 +131,7 @@ int main(void) InitNetworkDevice(); // Init network communications
// Create the server: getaddrinfo + socket + setsockopt + bind + listen
- serverResult = AllocSocketResult();
+ serverResult = LoadSocketResult();
if (!SocketCreate(&serverConfig, serverResult))
{
TraceLog(LOG_WARNING, "Failed to open server: status %d, errno %d", serverResult->status, serverResult->socket->status);
@@ -155,7 +155,7 @@ int main(void) }
// Create the client: getaddrinfo + socket + setsockopt + connect (TCP only)
- clientResult = AllocSocketResult();
+ clientResult = LoadSocketResult();
if (!SocketCreate(&clientConfig, clientResult))
{
TraceLog(LOG_WARNING, "Failed to open client: status %d, errno %d", clientResult->status, clientResult->socket->status);
@@ -172,7 +172,7 @@ int main(void) }
// Create and add sockets to the socket set
- socketSet = AllocSocketSet(3);
+ socketSet = LoadSocketSet(3);
AddSocket(socketSet, serverResult->socket);
AddSocket(socketSet, clientResult->socket);
|
