2022-09-16 18:01:34 -04:00
|
|
|
#pragma once
|
2023-03-03 03:06:50 -05:00
|
|
|
|
|
|
|
/* Initialize server to listen on the port passed as an argument. */
|
2022-09-16 18:01:34 -04:00
|
|
|
int server_init_sock(int port);
|
2023-03-03 03:06:50 -05:00
|
|
|
|
|
|
|
/* Accept a client and allocate a file descriptor for the client. */
|
2022-09-16 18:01:34 -04:00
|
|
|
int server_accept_client(int server);
|