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_test.c | |
| parent | e176a476c0abcdd8d7b1b9e369a2548c11d6e0dd (diff) | |
| download | raylib-42dad5df9584e83b22d3eeb6e6f158e7125040fa.tar.gz raylib-42dad5df9584e83b22d3eeb6e6f158e7125040fa.zip | |
[rnet] Renamed some functions
Diffstat (limited to 'examples/network/network_test.c')
| -rw-r--r-- | examples/network/network_test.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/network/network_test.c b/examples/network/network_test.c index 2307410e..b756c2cd 100644 --- a/examples/network/network_test.c +++ b/examples/network/network_test.c @@ -23,17 +23,17 @@ void test_network_initialise() void test_socket_result()
{
- SocketResult *result = AllocSocketResult();
+ SocketResult *result = LoadSocketResult();
assert(result != NULL);
- FreeSocketResult(&result);
+ UnloadSocketResult(&result);
assert(result == NULL);
}
void test_socket()
{
- Socket *socket = AllocSocket();
+ Socket *socket = LoadSocket();
assert(socket != NULL);
- FreeSocket(&socket);
+ UnloadSocket(&socket);
assert(socket == NULL);
}
@@ -84,7 +84,7 @@ void test_resolve_host() {
const char *address = "localhost";
const char *port = "80";
- AddressInformation *addr = AllocAddressList(3);
+ AddressInformation *addr = LoadAddressList(3);
int count = ResolveHost(address, port, ADDRESS_TYPE_ANY, 0, addr);
assert(GetAddressFamily(addr[0]) == ADDRESS_TYPE_IPV6);
@@ -105,9 +105,9 @@ void test_address_list() void test_socket_create()
{
SocketConfig server_cfg = { .host = "127.0.0.1", .port = "8080", .server = true, .nonblocking = true };
- Socket *socket = AllocSocket();
- SocketResult *server_res = AllocSocketResult();
- SocketSet *socket_set = AllocSocketSet(1);
+ Socket *socket = LoadSocket();
+ SocketResult *server_res = LoadSocketResult();
+ SocketSet *socket_set = LoadSocketSet(1);
assert(SocketCreate(&server_cfg, server_res));
assert(AddSocket(socket_set, server_res->socket));
|
