int make_server_socket(int port);//1void handleAccept(int socket_fd);//2int main(int ac, char *av[]){ int tcp_socket = make_server_socket(8888); if (tcp_socket == -1) { exit(0); } thread t;//3 while (1) { int socket_fd = accept(tcp_socket, nullptr, nullptr); //4 t = thread(handleAccept, socket_fd);//3 …
>>