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 3995 listenfd = socket(AF_DNSSD, SOCK_STREAM, 0); in udsserver_init() 3996 if (!dnssd_SocketValid(listenfd)) in udsserver_init() 4009 ret = bind(listenfd, (struct sockaddr *) &laddr, sizeof(laddr)); in udsserver_init() 4032 ret = bind(listenfd, (struct sockaddr *) &laddr, sizeof(laddr)); in udsserver_init() 4042 if (!uds_socket_setup(listenfd)) goto error; in udsserver_init() 4104 if (dnssd_SocketValid(listenfd)) in udsserver_exit() 4106 dnssd_close(listenfd); in udsserver_exit()
|
/external/fio/engines/ |
D | net.c | 27 int listenfd; member 834 f->fd = nd->listenfd; in fio_netio_accept() 843 if (poll_wait(td, nd->listenfd, POLLIN) < 0) in fio_netio_accept() 848 f->fd = accept(nd->listenfd, (struct sockaddr *) &nd->addr, &socklen); in fio_netio_accept() 851 f->fd = accept(nd->listenfd, (struct sockaddr *) &nd->addr6, &socklen); in fio_netio_accept() 1149 nd->listenfd = fd; in fio_netio_setup_listen_unix() 1265 nd->listenfd = fd; in fio_netio_setup_listen_inet() 1285 if (listen(nd->listenfd, 10) < 0) { in fio_netio_setup_listen() 1287 nd->listenfd = -1; in fio_netio_setup_listen() 1349 if (nd->listenfd != -1) in fio_netio_cleanup() [all …]
|
/external/curl/tests/server/ |
D | sockfilt.c | 886 curl_socket_t listenfd, in juggle() argument 934 sockfd = listenfd; in juggle()
|