Searched refs:connfd (Results 1 – 3 of 3) sorted by relevance
/external/nanopb-c/examples/network_server/ |
D | server.c | 48 void handle_connection(int connfd) in handle_connection() argument 52 pb_istream_t input = pb_istream_from_socket(connfd); in handle_connection() 53 pb_ostream_t output = pb_ostream_from_socket(connfd); in handle_connection() 89 int listenfd, connfd; in main() local 115 connfd = accept(listenfd, NULL, NULL); in main() 117 if (connfd < 0) in main() 125 handle_connection(connfd); in main() 129 close(connfd); in main()
|
/external/selinux/policycoreutils/mcstrans/src/ |
D | mcstransd.c | 285 add_pollfd(struct pollfd **ufds, int *nfds, int connfd) in add_pollfd() argument 307 (*ufds)[ii].fd = connfd; in add_pollfd() 338 int connfd = (*ufds)[ii].fd; in process_events() local 341 if (connfd == sockfd) { in process_events() 344 if ((connfd = accept(sockfd, NULL, NULL)) < 0) { in process_events() 349 if (add_pollfd(ufds, nfds, connfd)) { in process_events() 352 connfd); in process_events() 356 ret = service_request(connfd); in process_events() 362 connfd); in process_events() 366 close(connfd); in process_events() [all …]
|
/external/netcat/ |
D | netcat.c | 370 int connfd; in main() local 410 connfd = accept(s, (struct sockaddr *)&cliaddr, in main() 412 readwrite(connfd); in main() 413 close(connfd); in main()
|