Searched refs:connfd (Results 1 – 4 of 4) 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 | 267 add_pollfd(struct pollfd **ufds, int *nfds, int connfd) in add_pollfd() argument 289 (*ufds)[ii].fd = connfd; in add_pollfd() 320 int connfd = (*ufds)[ii].fd; in process_events() local 323 if (connfd == sockfd) { in process_events() 326 if ((connfd = accept(sockfd, NULL, NULL)) < 0) { in process_events() 331 if (add_pollfd(ufds, nfds, connfd)) { in process_events() 334 connfd); in process_events() 338 ret = service_request(connfd); in process_events() 344 connfd); in process_events() 348 close(connfd); in process_events() [all …]
|
/external/autotest/client/site_tests/platform_CompressedSwapPerf/src/ |
D | hog.c | 137 int connfd; in main() local 138 if ((connfd = accept(sockfd, NULL, NULL)) < 0) { in main() 165 ssize_t bytes_read = recv(connfd, &command, sizeof(command), 0); in main() 199 send(connfd, &result, sizeof(result), 0); in main() 202 bytes_read = recv(connfd, &balloon_size, sizeof(balloon_size), 0); in main() 213 send(connfd, &balloon_size, sizeof(balloon_size), 0); in main()
|
/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()
|