Home
last modified time | relevance | path

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

/external/nanopb-c/examples/network_server/
Dserver.c64 void handle_connection(int connfd) in handle_connection() argument
71 pb_istream_t input = pb_istream_from_socket(connfd); in handle_connection()
86 pb_ostream_t output = pb_ostream_from_socket(connfd); in handle_connection()
117 int listenfd, connfd; in main() local
144 connfd = accept(listenfd, NULL, NULL); in main()
146 if (connfd < 0) in main()
154 handle_connection(connfd); in main()
158 close(connfd); in main()
/external/grpc-grpc/third_party/nanopb/examples/network_server/
Dserver.c60 void handle_connection(int connfd) in handle_connection() argument
67 pb_istream_t input = pb_istream_from_socket(connfd); in handle_connection()
82 pb_ostream_t output = pb_ostream_from_socket(connfd); in handle_connection()
113 int listenfd, connfd; in main() local
140 connfd = accept(listenfd, NULL, NULL); in main()
142 if (connfd < 0) in main()
150 handle_connection(connfd); in main()
154 close(connfd); in main()
/external/selinux/mcstrans/src/
Dmcstransd.c256 add_pollfd(struct pollfd **ufds, int *nfds, int connfd) in add_pollfd() argument
278 (*ufds)[ii].fd = connfd; in add_pollfd()
309 int connfd = (*ufds)[ii].fd; in process_events() local
312 if (connfd == sockfd) { in process_events()
315 if ((connfd = accept(sockfd, NULL, NULL)) < 0) { in process_events()
320 if (add_pollfd(ufds, nfds, connfd)) { in process_events()
323 connfd); in process_events()
327 ret = service_request(connfd); in process_events()
333 connfd); in process_events()
337 close(connfd); in process_events()
[all …]
/external/autotest/client/site_tests/platform_CompressedSwapPerf/src/
Dhog.c137 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/ltp/testcases/kernel/syscalls/accept4/
Daccept4_01.c109 int connfd, acceptfd; in verify_accept4() local
113 connfd = SAFE_SOCKET(AF_INET, SOCK_STREAM, 0); in verify_accept4()
114 SAFE_CONNECT(connfd, (struct sockaddr *)conn_addr, sizeof(*conn_addr)); in verify_accept4()
152 SAFE_CLOSE(connfd); in verify_accept4()
/external/curl/tests/server/
Dsocksd.c422 curl_socket_t connfd; in socks4() local
440 connfd = socksconnect(s4port, config.addr); in socks4()
441 if(connfd == CURL_SOCKET_BAD) { in socks4()
463 return connfd; in socks4()
465 if(connfd != CURL_SOCKET_BAD) in socks4()
466 sclose(connfd); in socks4()
481 curl_socket_t connfd = CURL_SOCKET_BAD; in sockit() local
642 connfd = socksconnect(s5port, config.addr); in sockit()
644 if(connfd == CURL_SOCKET_BAD) { in sockit()
690 return connfd; in sockit()
[all …]
/external/openssh/regress/
Dnetcat.c368 int connfd; in main() local
417 connfd = accept(s, (struct sockaddr *)&cliaddr, in main()
419 if (connfd == -1) { in main()
426 readwrite(connfd); in main()
427 close(connfd); in main()