listenfd = lacz_tcp(wiadomosc->port);
From what I can tell, the port has not been initialized before you call bind. Log the port to be sure that the server is listening on the correct port.
listenfd = lacz_tcp(wiadomosc->port);
From what I can tell, the port has not been initialized before you call bind. Log the port to be sure that the server is listening on the correct port.