Home Segments Index Top Previous Next

725: Mainline

Next, on the server side of the connection, inside the main function, you need to declare three integer variables, along with two structure variables and two pointer variables:

int socket_number, new_socket_number, client_size; 
struct sockaddr_in server_addr, client_addr; 
FILE *fm_client, *to_client; 

The uses of all these variables are explained in the following segments.