Claude Chappe' Curse - A C Game
Logo Institut d'Informatique Claude Chappe Logo Université de Le Mans Logo Raeptor Production
 
Loading...
Searching...
No Matches
server.h
Go to the documentation of this file.
1#pragma once
11#pragma region LOW LEVEL
12
22struct sockaddr_in create_address(int port);
23
33int create_socket_server(int port);
34
43int listen_socket(int sock);
44#pragma region HIGH LEVEL
int listen_socket(int sock)
Listens for incoming connections on the specified socket.
Definition server.c:35
int create_socket_server(int port)
Creates a socket server and binds it to the specified port.
Definition server.c:16
struct sockaddr_in create_address(int port)
Creates a sockaddr_in structure for the given port.
Definition server.c:6