Rename net_listen() parameter

For consistency with net_accept(), which necessarily uses a server
socket, name the net_listen() parameter "server_socket".
This commit is contained in:
Romain Vimont
2022-08-17 16:38:59 +02:00
parent d23b3e88a4
commit d19606eb0c
4 changed files with 7 additions and 7 deletions

View File

@@ -159,8 +159,8 @@ net_connect(sc_socket socket, uint32_t addr, uint16_t port) {
}
bool
net_listen(sc_socket socket, uint32_t addr, uint16_t port, int backlog) {
sc_raw_socket raw_sock = unwrap(socket);
net_listen(sc_socket server_socket, uint32_t addr, uint16_t port, int backlog) {
sc_raw_socket raw_sock = unwrap(server_socket);
int reuse = 1;
if (setsockopt(raw_sock, SOL_SOCKET, SO_REUSEADDR, (const void *) &reuse,