Posts by Frederico Maia E Moura • 3 points
1 post
-
0
votes1
answer23
viewsQ: TCP server with select(), does not work because printf shows 3x to msg and msg comes with trash at the end and ends automatically
void cria_server_tcp(int porto) { struct sockaddr_in serveraddr, clientaddr; int fd_listen = cria_socket_tcp(); int max_clientes = 20; //numero maximo de clientes em espera int addrlen; int…
casked Frederico Maia E Moura 3