Searched refs:sockets (Results 1 - 25 of 61) sorted by relevance

123

/macosx-10.9.5/curl-78.94.1/curl/tests/libtest/
H A Dlib582.c34 curl_socket_t *sockets; member in struct:Sockets
35 int count; /* number of sockets actually stored in array */
36 int max_count; /* max number of sockets that fit in allocated array */
45 * Remove a file descriptor from a sockets array.
47 static void removeFd(struct Sockets* sockets, curl_socket_t fd, int mention) argument
54 for (i = 0; i < sockets->count; ++i) {
55 if (sockets->sockets[i] == fd) {
56 if (i < sockets->count - 1)
57 memmove(&sockets
67 addFd(struct Sockets* sockets, curl_socket_t fd, const char *what) argument
108 struct ReadWriteSockets* sockets = userp; local
188 updateFdSet(struct Sockets* sockets, fd_set* fdset, curl_socket_t *maxFd) argument
214 checkFdSet(CURLM *curl, struct Sockets *sockets, fd_set *fdset, int evBitmask, const char *name) argument
234 struct ReadWriteSockets sockets = {{NULL, 0, 0}, {NULL, 0, 0}}; local
[all...]
H A Dlibntlmconnect.c37 static curl_socket_t sockets[MAX_EASY_HANDLES]; variable
77 if (sockets[idx] == CURL_SOCKET_BAD) {
79 sockets[idx] = sock;
81 else if (sock != sockets[idx]) {
85 curlx_sztosi(idx), (int)sockets[idx], (int)sock);
117 sockets[i] = CURL_SOCKET_BAD;
195 if (sockets[j] == curfd) {
211 if (sockets[num_handles-1] != CURL_SOCKET_BAD) {
214 assert(curfd != sockets[num_handles-1]);
216 num_handles-1, (int)sockets[num_handle
[all...]
/macosx-10.9.5/WebKit2-7537.78.2/SharedWorkerProcess/
H A DSharedWorkerProcess.cpp132 int sockets[2];
133 if (socketpair(AF_UNIX, SOCKET_TYPE, 0, sockets) == -1) {
139 while (fcntl(sockets[1], F_SETFD, FD_CLOEXEC) == -1) {
142 while (close(sockets[0]) == -1 && errno == EINTR) { }
143 while (close(sockets[1]) == -1 && errno == EINTR) { }
149 while (fcntl(sockets[0], F_SETFD, FD_CLOEXEC) == -1) {
152 while (close(sockets[0]) == -1 && errno == EINTR) { }
153 while (close(sockets[1]) == -1 && errno == EINTR) { }
158 RefPtr<WebProcessConnection> connection = WebProcessConnection::create(sockets[1]);
161 CoreIPC::Attachment clientSocket(sockets[
[all...]
/macosx-10.9.5/WebKit2-7537.78.2/UIProcess/Launcher/gtk/
H A DProcessLauncherGtk.cpp70 int sockets[2]; local
71 if (socketpair(AF_UNIX, SOCKET_TYPE, 0, sockets) < 0) {
88 GOwnPtr<gchar> socket(g_strdup_printf("%d", sockets[0]));
96 if (!g_spawn_async(0, argv, 0, G_SPAWN_LEAVE_DESCRIPTORS_OPEN, childSetupFunction, GINT_TO_POINTER(sockets[1]), &pid, &error.outPtr())) {
101 close(sockets[0]);
105 RunLoop::main()->dispatch(bind(&ProcessLauncher::didFinishLaunchingProcess, this, m_processIdentifier, sockets[1]));
/macosx-10.9.5/ruby-104/ruby/ext/socket/lib/
H A Dsocket.rb371 sockets = []
373 sockets.clear
381 sockets << s
394 sockets.each {|s| s.close }
397 sockets.each {|s| s.close }
400 sockets
408 sockets = ip_sockets_port0(ai_list, true)
410 sockets.each {|s|
414 sockets.each {|s| s.close }
417 sockets
[all...]
/macosx-10.9.5/WebKit2-7537.78.2/UIProcess/Launcher/efl/
H A DProcessLauncherEfl.cpp69 int sockets[2]; local
70 if (socketpair(AF_UNIX, SOCK_STREAM, 0, sockets) < 0) {
95 Vector<OwnArrayPtr<char>> args = createArgsArray(processCmdPrefix, executablePath, String::number(sockets[0]), pluginPath);
102 close(sockets[1]);
105 close(sockets[0]);
108 RunLoop::main()->dispatch(bind(&ProcessLauncher::didFinishLaunchingProcess, this, pid, sockets[1]));
/macosx-10.9.5/Heimdal-323.92.1/appl/kx/
H A Dkxd.c86 * Remove all sockets and cookie files.
90 cleanup(int nsockets, struct x_socket *sockets) argument
97 if (sockets[i].pathname != NULL) {
98 unlink (sockets[i].pathname);
99 free (sockets[i].pathname);
102 free(sockets);
111 int *dispnr, int *nsockets, struct x_socket **sockets,
127 *sockets = NULL;
203 tmp = get_xsockets (nsockets, sockets, tcp_flag);
210 if (chown_xsockets (*nsockets, *sockets,
110 recv_conn(int sock, kx_context *kc, int *dispnr, int *nsockets, struct x_socket **sockets, int tcp_flag) argument
446 doit_passive(kx_context *kc, int sock, int flags, int dispnr, int nsockets, struct x_socket *sockets, int tcp_flag) argument
686 struct x_socket *sockets; local
[all...]
H A Dkx.h154 int get_xsockets (int *number, struct x_socket **sockets, int tcpp);
155 int chown_xsockets (int n, struct x_socket *sockets, uid_t uid, gid_t gid);
H A Dkx.c348 struct x_socket *sockets; local
429 tmp2 = get_xsockets (&nsockets, &sockets, kc->tcp_flag);
431 errx(1, "Failed to open sockets");
451 if (sockets[i].fd >= FD_SETSIZE)
453 FD_SET(sockets[i].fd, &fdset);
458 if (FD_ISSET(sockets[i].fd, &fdset)) {
459 thisfd = sockets[i].fd;
500 close (sockets[i].fd);
/macosx-10.9.5/WebKit2-7537.78.2/PluginProcess/
H A DPluginProcess.cpp185 int sockets[2]; local
186 if (socketpair(AF_UNIX, SOCKET_TYPE, 0, sockets) == -1) {
192 while (fcntl(sockets[1], F_SETFD, FD_CLOEXEC) == -1) {
195 while (close(sockets[0]) == -1 && errno == EINTR) { }
196 while (close(sockets[1]) == -1 && errno == EINTR) { }
202 while (fcntl(sockets[0], F_SETFD, FD_CLOEXEC) == -1) {
205 while (close(sockets[0]) == -1 && errno == EINTR) { }
206 while (close(sockets[1]) == -1 && errno == EINTR) { }
211 RefPtr<WebProcessConnection> connection = WebProcessConnection::create(sockets[1]);
214 CoreIPC::Attachment clientSocket(sockets[
[all...]
/macosx-10.9.5/WebKit2-7537.78.2/UIProcess/Launcher/qt/
H A DProcessLauncherQt.cpp154 int sockets[2]; local
155 if (socketpair(AF_UNIX, SOCKET_TYPE, 0, sockets) == -1) {
162 while (fcntl(sockets[1], F_SETFD, FD_CLOEXEC) == -1) {
165 while (close(sockets[0]) == -1 && errno == EINTR) { }
166 while (close(sockets[1]) == -1 && errno == EINTR) { }
171 int connector = sockets[1];
172 commandLine = commandLine.arg(sockets[0]);
188 sandboxCommandLine = sandboxCommandLine.arg(sockets[0]);
199 while (fcntl(sockets[0], F_SETFD, FD_CLOEXEC) == -1) {
/macosx-10.9.5/OpenSSH-186/openssh/
H A Dssh-agent.c112 SocketEntry *sockets = NULL; variable
982 if (sockets[i].type == AUTH_UNUSED) {
983 sockets[i].fd = fd;
984 buffer_init(&sockets[i].input);
985 buffer_init(&sockets[i].output);
986 buffer_init(&sockets[i].request);
987 sockets[i].type = type;
992 sockets = xrealloc(sockets, new_alloc, sizeof(sockets[
[all...]
/macosx-10.9.5/ruby-104/ruby/lib/webrick/
H A Dutils.rb68 # Creates TCP server sockets bound to +address+:+port+ and returns them.
70 # It will create IPV4 and IPV6 sockets on all interfaces.
81 sockets = []
88 sockets << sock
94 raise last_error if sockets.empty?
95 return sockets
/macosx-10.9.5/bootp-268.1/IPConfiguration.bproj/
H A DDHCPv6Socket.c26 * - maintain list of DHCPv6 client "sockets"
27 * - distribute packet reception to enabled "sockets"
74 dynarray_t sockets; member in struct:DHCPv6SocketGlobals
161 dynarray_init(&globals->sockets, DHCPv6SocketFreeElement, NULL);
179 dynarray_free(&globals->sockets);
237 for (i = 0; i < dynarray_count(&S_globals->sockets); i++) {
240 client = dynarray_element(&S_globals->sockets, i);
302 if (dynarray_add(&globals->sockets, sock) == FALSE) {
329 i = dynarray_index(&S_globals->sockets, sock);
331 dynarray_remove(&S_globals->sockets,
[all...]
H A DRTADVSocket.c26 * - maintain list of Router Advertisement client "sockets"
27 * - distribute packet reception to enabled "sockets"
121 dynarray_t sockets; member in struct:RTADVSocketGlobals
208 dynarray_init(&globals->sockets, RTADVSocketFreeElement, NULL);
226 dynarray_free(&globals->sockets);
249 for (i = 0; i < dynarray_count(&S_globals->sockets); i++) {
253 sock = dynarray_element(&S_globals->sockets, i);
645 if (dynarray_add(&globals->sockets, sock) == FALSE) {
672 i = dynarray_index(&S_globals->sockets, sock);
674 dynarray_remove(&S_globals->sockets,
[all...]
/macosx-10.9.5/WebKit2-7537.78.2/Shared/linux/SeccompFilters/
H A DSeccompBroker.cpp286 int sockets[2]; local
287 if (socketpair(AF_UNIX, SOCK_STREAM, 0, sockets) < 0)
292 close(sockets[1]);
293 SeccompBrokerClient::shared(sockets[0]);
300 close(sockets[0]);
301 runLoop(sockets[1]);
/macosx-10.9.5/curl-78.94.1/curl/lib/
H A Dmultihandle.h56 /* we support N sockets per easy handle. Set the corresponding bit to what
76 particular order. Note that all sockets are added to the sockhash, where
79 curl_socket_t sockets[MAX_SOCKSPEREASYHANDLE]; member in struct:Curl_one_easy
/macosx-10.9.5/apache-786.1/httpd/srclib/apr/test/
H A DNWGNUsockchild98 NLM_DESCRIPTION = socket NLM to test sockets
/macosx-10.9.5/apr-30/apr/apr/test/
H A DNWGNUsockchild98 NLM_DESCRIPTION = socket NLM to test sockets
/macosx-10.9.5/xnu-2422.115.4/bsd/net/
H A Draw_usrreq.c118 int sockets = 0; local
156 sockets++;
168 sockets++;
/macosx-10.9.5/bind9-45.100/bind9/contrib/dbus/
H A Ddbus_mgr.c78 void * sockets; /* dbus fd tree */ member in struct:ns_dbus_mgr
251 mgr->sockets = 0L;
292 if( mgr->sockets != 0L )
295 twalk(mgr->sockets, dbus_mgr_close_socket);
296 tdestroy(mgr->sockets, dbus_mgr_destroy_socket);
297 mgr->sockets = 0L;
317 if( mgr->sockets != 0L )
319 twalk(mgr->sockets, dbus_mgr_close_socket);
320 tdestroy(mgr->sockets, dbus_mgr_destroy_socket);
321 mgr->sockets
[all...]
/macosx-10.9.5/ruby-104/ruby/test/socket/
H A Dtest_socket.rb146 sockets = Socket.tcp_server_sockets(port)
151 sockets.each {|s|
155 sockets.each {|s|
162 sockets = Socket.tcp_server_sockets(0)
163 ports = sockets.map {|s| s.local_address.ip_port }
169 if sockets
170 sockets.each {|s|
309 Socket.udp_server_sockets(0) {|sockets|
311 sockets.each {|s| famlies[s.local_address.afamily] = s }
368 port = sockets
[all...]
/macosx-10.9.5/xnu-2422.115.4/bsd/conf/
H A Dfiles62 OPTIONS/sockets optional sockets
211 bsd/miscfs/fifofs/fifo_vnops.c optional fifo sockets
230 bsd/net/init.c optional sockets
494 bsd/kern/kpi_mbuf.c optional sockets
498 bsd/kern/mcache.c optional sockets
507 bsd/kern/sys_socket.c optional sockets
508 bsd/kern/sys_domain.c optional sockets
518 bsd/kern/uipc_domain.c optional sockets
519 bsd/kern/uipc_mbuf.c optional sockets
[all...]
/macosx-10.9.5/tcl-102/tcl_ext/tclx/tclx/unix/tools/
H A Dtclmanpages56 {http.n tcl/sockets/http}
107 {socket.n tcl/sockets/socket}
/macosx-10.9.5/apr-30/apr/apr/network_io/unix/
H A Dsockopt.c35 #error Please teach APR how to make sockets blocking on your platform.
61 #error Please teach APR how to make sockets non-blocking on your platform.

Completed in 328 milliseconds

123