my_teams
p_server_create.c File Reference
#include <signal.h>
#include <unistd.h>
#include "protocol.h"
Include dependency graph for p_server_create.c:

Functions

bool p_server_is_open (void)
 Check if the server is open. More...
 
p_server_tp_server_create (const int port)
 Create a server with given port. More...
 

Function Documentation

◆ p_server_create()

p_server_t* p_server_create ( int  port)

Create a server with given port.

Parameters
portPort number to bind the server.
Returns
Pointer to the created server.
Here is the call graph for this function:

◆ p_server_is_open()

bool p_server_is_open ( void  )

Check if the server is open.

Returns
true if the server is open, false otherwise.