Home
last modified time | relevance | path

Searched refs:listen_fd (Results 1 – 16 of 16) sorted by relevance

/external/dbus/cmake/modules/
DCheckForAbstractSockets.c9 int listen_fd; in main() local
12 listen_fd = socket (PF_UNIX, SOCK_STREAM, 0); in main()
14 if (listen_fd < 0) in main()
25 if (bind (listen_fd, (struct sockaddr*) &addr, SUN_LEN (&addr)) < 0) in main()
/external/dbus/dbus/
Ddbus-server-unix.c230 int listen_fd; in _dbus_server_new_for_domain_socket() local
268 listen_fd = _dbus_listen_unix_socket (path, abstract, error); in _dbus_server_new_for_domain_socket()
270 if (listen_fd < 0) in _dbus_server_new_for_domain_socket()
276 server = _dbus_server_new_for_socket (&listen_fd, 1, &address, 0); in _dbus_server_new_for_domain_socket()
291 _dbus_close_socket (listen_fd, NULL); in _dbus_server_new_for_domain_socket()
Ddbus-sysdeps-unix.c1014 int listen_fd; in _dbus_listen_unix_socket() local
1029 listen_fd = android_get_control_socket (suffix); in _dbus_listen_unix_socket()
1030 if (listen_fd == -1) in _dbus_listen_unix_socket()
1047 if (!_dbus_open_unix_socket (&listen_fd, error)) in _dbus_listen_unix_socket()
1071 _dbus_close (listen_fd, NULL); in _dbus_listen_unix_socket()
1080 _dbus_close (listen_fd, NULL); in _dbus_listen_unix_socket()
1108 _dbus_close (listen_fd, NULL); in _dbus_listen_unix_socket()
1116 if (setsockopt (listen_fd, SOL_SOCKET, SO_REUSEADDR, &reuseaddr, sizeof(reuseaddr))==-1) in _dbus_listen_unix_socket()
1122 …if (bind (listen_fd, (struct sockaddr*) &addr, _DBUS_STRUCT_OFFSET (struct sockaddr_un, sun_path) … in _dbus_listen_unix_socket()
1127 _dbus_close (listen_fd, NULL); in _dbus_listen_unix_socket()
[all …]
Ddbus-server-socket.c186 int listen_fd; in socket_handle_watch() local
188 listen_fd = dbus_watch_get_socket (watch); in socket_handle_watch()
191 client_fd = _dbus_accept_with_noncefile (listen_fd, socket_server->noncefile); in socket_handle_watch()
193 client_fd = _dbus_accept (listen_fd); in socket_handle_watch()
Ddbus-nonce.h55 int _dbus_accept_with_noncefile (int listen_fd,
Ddbus-nonce.c134 _dbus_accept_with_noncefile (int listen_fd, const DBusNonceFile *noncefile) in _dbus_accept_with_noncefile() argument
145 fd = _dbus_accept (listen_fd); in _dbus_accept_with_noncefile()
Ddbus-sysdeps-win.c1391 int nlisten_fd = 0, *listen_fd = NULL, res, i, port_num = -1; in _dbus_listen_tcp_socket() local
1479 newlisten_fd = dbus_realloc(listen_fd, sizeof(int)*(nlisten_fd+1)); in _dbus_listen_tcp_socket()
1487 listen_fd = newlisten_fd; in _dbus_listen_tcp_socket()
1488 listen_fd[nlisten_fd] = fd; in _dbus_listen_tcp_socket()
1551 _dbus_fd_set_close_on_exec (listen_fd[i]); in _dbus_listen_tcp_socket()
1552 if (!_dbus_set_fd_nonblocking (listen_fd[i], error)) in _dbus_listen_tcp_socket()
1558 *fds_p = listen_fd; in _dbus_listen_tcp_socket()
1566 closesocket (listen_fd[i]); in _dbus_listen_tcp_socket()
1567 dbus_free(listen_fd); in _dbus_listen_tcp_socket()
1580 _dbus_accept (int listen_fd) in _dbus_accept() argument
[all …]
Ddbus-sysdeps.h184 int _dbus_accept (int listen_fd);
/external/google-breakpad/src/client/linux/crash_generation/
Dcrash_generation_server.cc57 const int listen_fd, in CrashGenerationServer() argument
64 server_fd_(listen_fd), in CrashGenerationServer()
Dcrash_generation_server.h68 CrashGenerationServer(const int listen_fd,
/external/netperf/src/
Dnetserver.c1156 accept_connection(SOCKET listen_fd) { in accept_connection() argument
1177 server_control = listen_fd; in accept_connection()
1179 if ((server_sock = accept(listen_fd, in accept_connection()
/external/blktrace/
Dblktrace.c232 int listen_fd, connects, nchs; member
2280 fd = my_accept(ns->listen_fd, (struct sockaddr *)&ns->addr, &socklen); in net_add_connection()
2482 ns->pfds[0].fd = ns->listen_fd; in net_setup_pfds()
2565 ns->listen_fd = fd; in net_server()
/external/libmicrohttpd/src/testcurl/
Dtest_get_sendfile.c417 if (0 != getsockname(di->listen_fd, (struct sockaddr *) &addr, &addr_len)) in testUnknownPortGet()
Dtest_get.c415 if (0 != getsockname(di->listen_fd, (struct sockaddr *) &addr, &addr_len)) in testUnknownPortGet()
/external/libmicrohttpd/src/include/
Dmicrohttpd.h2511 MHD_socket listen_fd; member
/external/dbus/
Dconfigure.ac842 int listen_fd;
845 listen_fd = socket (PF_UNIX, SOCK_STREAM, 0);
847 if (listen_fd < 0)
862 if (bind (listen_fd, (struct sockaddr*) &addr, slen) < 0)