Searched refs:listenfd (Results 1 – 5 of 5) sorted by relevance
/external/nanopb-c/examples/network_server/ |
D | server.c | 89 int listenfd, connfd; in main() local 93 listenfd = socket(AF_INET, SOCK_STREAM, 0); in main() 95 setsockopt(listenfd, SOL_SOCKET, SO_REUSEADDR, &reuse, sizeof(reuse)); in main() 101 if (bind(listenfd, (struct sockaddr*)&servaddr, sizeof(servaddr)) != 0) in main() 107 if (listen(listenfd, 5) != 0) in main() 115 connfd = accept(listenfd, NULL, NULL); in main()
|
/external/mdnsresponder/mDNSShared/ |
D | dnssd_clientstub.c | 553 dnssd_sock_t listenfd = dnssd_InvalidSocket, errsd = dnssd_InvalidSocket; in deliver_request() local 580 listenfd = socket(AF_DNSSD, SOCK_STREAM, 0); in deliver_request() 581 if (!dnssd_SocketValid(listenfd)) deliver_request_bailout("TCP socket"); in deliver_request() 586 …if (bind(listenfd, (struct sockaddr*) &caddr, sizeof(caddr)) < 0) deliver_request_bailout("TCP bin… in deliver_request() 587 …if (getsockname(listenfd, (struct sockaddr*) &caddr, &len) < 0) deliver_request_bailout("TCP get… in deliver_request() 588 …if (listen(listenfd, 1) < 0) deliver_request_bailout("TCP lis… in deliver_request() 598 listenfd = socket(AF_DNSSD, SOCK_STREAM, 0); in deliver_request() 599 … if (!dnssd_SocketValid(listenfd)) deliver_request_bailout("USE_NAMED_ERROR_RETURN_SOCKET socket"); in deliver_request() 609 bindresult = bind(listenfd, (struct sockaddr *)&caddr, sizeof(caddr)); in deliver_request() 612 if (listen(listenfd, 1) < 0) deliver_request_bailout("USE_NAMED_ERROR_RETURN_SOCKET listen"); in deliver_request() [all …]
|
D | uds_daemon.c | 254 static dnssd_sock_t listenfd = dnssd_InvalidSocket; variable 4001 listenfd = socket(AF_DNSSD, SOCK_STREAM, 0); in udsserver_init() 4002 if (!dnssd_SocketValid(listenfd)) in udsserver_init() 4015 ret = bind(listenfd, (struct sockaddr *) &laddr, sizeof(laddr)); in udsserver_init() 4038 ret = bind(listenfd, (struct sockaddr *) &laddr, sizeof(laddr)); in udsserver_init() 4048 if (!uds_socket_setup(listenfd)) goto error; in udsserver_init() 4110 if (dnssd_SocketValid(listenfd)) in udsserver_exit() 4112 dnssd_close(listenfd); in udsserver_exit()
|
/external/fio/engines/ |
D | net.c | 28 int listenfd; member 837 f->fd = nd->listenfd; in fio_netio_accept() 846 if (poll_wait(td, nd->listenfd, POLLIN) < 0) in fio_netio_accept() 851 f->fd = accept(nd->listenfd, (struct sockaddr *) &nd->addr, &socklen); in fio_netio_accept() 854 f->fd = accept(nd->listenfd, (struct sockaddr *) &nd->addr6, &socklen); in fio_netio_accept() 1152 nd->listenfd = fd; in fio_netio_setup_listen_unix() 1268 nd->listenfd = fd; in fio_netio_setup_listen_inet() 1288 if (listen(nd->listenfd, 10) < 0) { in fio_netio_setup_listen() 1290 nd->listenfd = -1; in fio_netio_setup_listen() 1352 if (nd->listenfd != -1) in fio_netio_cleanup() [all …]
|
/external/curl/tests/server/ |
D | sockfilt.c | 907 curl_socket_t listenfd, in juggle() argument 955 sockfd = listenfd; in juggle()
|