diff options
-rwxr-xr-x | reduced_system_layer.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/reduced_system_layer.c b/reduced_system_layer.c index f81266d..cca1d30 100755 --- a/reduced_system_layer.c +++ b/reduced_system_layer.c @@ -5,7 +5,8 @@ #/ #/ This is a reduced system layer. #/ It allows you to create a window, draw graphics in it, handle -#/ input events. +#/ input events, write samples to audio output, send and receive +#/ UDP packets. #/ #/ ---------------------------------------------------------------- #/ @@ -532,7 +533,7 @@ i64 p_recv(u16 slot, IP_Address address, i64 size, u8 *data, u16 *local_port, IP p_len = sizeof a6; } - i64 recieved = recvfrom( + i64 received = recvfrom( _sockets[slot].socket, data, size, @@ -541,7 +542,7 @@ i64 p_recv(u16 slot, IP_Address address, i64 size, u8 *data, u16 *local_port, IP &(socklen_t) {p_len} ); - if (recieved < 0) { + if (received < 0) { if (errno == EAGAIN || errno == EWOULDBLOCK) return 0; @@ -562,7 +563,7 @@ i64 p_recv(u16 slot, IP_Address address, i64 size, u8 *data, u16 *local_port, IP } } - return recieved; + return received; } i64 p_send(u16 slot, IP_Address address, i64 size, u8 *data, u16 *local_port) { |