SOC3010 OPERATING SYSTEMS
HOME ASSIGNMENT 3
FALL 2022
{
perror("socket bind failed");
exit(EXIT_FAILURE);
}
printf("SERVER LISTENING ON PORT 8080 FOR NEW CONNECTION.....\n");
if (listen(server_fd, 3) < 0)
{
perror("sockeet listen failed ");
exit(EXIT_FAILURE);
}
if
((new_socket
=
accept(server_fd,
(struct
sockaddr
*)&address,
(socklen_t*)&addrlen))<0)
Do'stlaringiz bilan baham: