init_server
if (!init_server(&accept_socket, port, type))
static int init_server(int *sock, int port, int type);