Home
last modified time | relevance | path

Searched refs:fd_recv (Results 1 – 1 of 1) sorted by relevance

/net-tools-3.6.0/
Decho-server.c188 static int udp_receive_and_reply(fd_set *rfds, int fd_recv, int fd_send, in udp_receive_and_reply() argument
192 if (FD_ISSET(fd_recv, rfds)) { in udp_receive_and_reply()
197 ret = receive(fd_recv, buf, buflen, in udp_receive_and_reply()
217 int fd_recv, int fd_send, in tcp_receive_and_reply() argument
224 if (FD_ISSET(fd_recv, rfds)) { in tcp_receive_and_reply()
225 ret = receive(fd_recv, buf, buflen, in tcp_receive_and_reply()
235 close(fd_recv); in tcp_receive_and_reply()
236 printf("Connection closed fd %d\n", fd_recv); in tcp_receive_and_reply()