Home
last modified time | relevance | path

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

/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/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/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.c105 int connfd, acceptfd; in do_test() local
114 connfd = socket(AF_INET, SOCK_STREAM, 0); in do_test()
115 if (connfd == -1) in do_test()
117 if (connect(connfd, (struct sockaddr *)conn_addr, in do_test()
167 close(connfd); in do_test()
/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()