Home
last modified time | relevance | path

Searched refs:sockets (Results 1 – 25 of 33) sorted by relevance

12

/curl/tests/libtest/
H A Dlib530.c62 if(sockets->sockets[i] == fd) { in removeFd()
64 memmove(&sockets->sockets[i], &sockets->sockets[i + 1], in removeFd()
86 if(!sockets->sockets) { in addFd()
88 if(!sockets->sockets) in addFd()
98 sockets->sockets = ptr; in addFd()
104 sockets->sockets[sockets->count] = fd; in addFd()
221 FD_SET(sockets->sockets[i], fdset); in updateFdSet()
222 if(*maxFd < sockets->sockets[i] + 1) { in updateFdSet()
223 *maxFd = sockets->sockets[i] + 1; in updateFdSet()
362 free(sockets.read.sockets); in testone()
[all …]
H A Dlib582.c55 if(sockets->sockets[i] == fd) { in removeFd()
57 memmove(&sockets->sockets[i], &sockets->sockets[i + 1], in removeFd()
78 if(!sockets->sockets) { in addFd()
80 if(!sockets->sockets) in addFd()
92 sockets->sockets[sockets->count] = fd; in addFd()
189 FD_SET(sockets->sockets[i], fdset); in updateFdSet()
190 if(*maxFd < sockets->sockets[i] + 1) { in updateFdSet()
191 *maxFd = sockets->sockets[i] + 1; in updateFdSet()
215 if(FD_ISSET(sockets->sockets[i], fdset)) { in checkFdSet()
351 free(sockets.read.sockets); in test()
[all …]
/curl/tests/
H A Dmemanalyze.pl40 my $sockets=0;
272 $sockets++; # number of socket() calls
428 "Sockets: $sockets\n",
430 …tions: ".($mallocs + $callocs + $reallocs + $strdups + $wcsdups + $sends + $recvs + $sockets)."\n";
/curl/docs/libcurl/opts/
H A DCURLOPT_UNIX_SOCKET_PATH.md30 Enables the use of Unix domain sockets as connection endpoint and sets the
31 path to *path*. If *path* is NULL, then Unix domain sockets are
54 NULL - no Unix domain sockets are used.
H A DCURLOPT_CLOSESOCKETFUNCTION.md36 *closesocket(3)* call when sockets are closed (not for any other file
72 /* call this function to close sockets */
H A DCURLOPT_CLOSESOCKETDATA.md61 /* call this function to close sockets */
H A DCURLOPT_ABSTRACT_UNIX_SOCKET.md34 sockets, however it should be stressed that the path passed to this function
H A DCURLOPT_SOCKOPTFUNCTION.md55 (in earlier versions these sockets were not passed to this callback).
H A DCURLMOPT_SOCKETFUNCTION.md46 libcurl then expects the application to monitor the sockets for the specific
H A DCURLOPT_PROXY.md96 Unix domain sockets are supported for socks proxies since 7.84.0. Set
/curl/docs/libcurl/
H A Dlibcurl-env-dbg.md33 For TCP/UNIX sockets.
38 For TCP/UNIX sockets. This is applied to every recv.
46 For TCP/UNIX sockets.
51 sockets. This is applied to every send.
H A Dcurl_multi_fdset.md74 If one of the sockets used by libcurl happens to be larger than what can be
79 save you from the crash, but makes your program NOT wait for sockets it should
111 /* wait for activity on one of the sockets */
H A Dcurl_multi_timeout.md82 Call curl_multi_timeout(3), then wait for action on the sockets. Figure
83 out which sockets to wait for by calling curl_multi_fdset(3).
H A Dlibcurl-multi.md137 calls with information about what sockets to wait for, and for what activity,
142 sockets libcurl is currently using and for what activities (read and/or write)
143 on those sockets your application is expected to wait for.
145 Your application must make sure to receive all sockets informed about in the
165 get activity on the sockets you have been asked to wait on, or if the timeout
H A Dcurl_multi_socket_all.md40 Force libcurl to (re-)check all its internal sockets and transfers instead of
H A Dcurl_multi_socket_action.md85 5. Provide some means to manage the sockets libcurl is using, so you can check
92 7. Wait for activity on any of libcurl's sockets, use the timeout value your
/curl/tests/data/
H A Dtest146742 HTTP GET via SOCKS5 proxy via Unix sockets
H A Dtest146843 HTTP GET with host name using SOCKS5h via Unix sockets
H A Dtest147044 HTTPS GET with host name using SOCKS5h via Unix sockets
/curl/lib/
H A Dcfilters.c592 pfds[npfds].fd = ps.sockets[i]; in Curl_conn_cf_poll()
904 ps->sockets[i] = CURL_SOCKET_BAD; in Curl_pollset_reset()
925 if(ps->sockets[i] == sock) { in Curl_pollset_change()
931 memmove(&ps->sockets[i], &ps->sockets[i + 1], in Curl_pollset_change()
932 (ps->num - (i + 1)) * sizeof(ps->sockets[0])); in Curl_pollset_change()
953 ps->sockets[i] = sock; in Curl_pollset_change()
1014 if(ps->sockets[i] == sock) { in Curl_pollset_check()
H A Dselect.c484 if(cpfds_add_sock(cpfds, ps->sockets[i], events, TRUE)) in Curl_pollfds_add_ps()
538 if(cwfds_add_sock(cwfds, ps->sockets[i], events)) in Curl_waitfds_add_ps()
H A Dmulti.c1170 if(!FDSET_SOCK(data->last_poll.sockets[i])) in curl_multi_fdset()
1174 FD_SET(data->last_poll.sockets[i], read_fd_set); in curl_multi_fdset()
1176 FD_SET(data->last_poll.sockets[i], write_fd_set); in curl_multi_fdset()
1177 if((int)data->last_poll.sockets[i] > this_max_fd) in curl_multi_fdset()
1178 this_max_fd = (int)data->last_poll.sockets[i]; in curl_multi_fdset()
1429 if(WSAEnumNetworkEvents(data->last_poll.sockets[i], NULL,
1434 WSAEventSelect(data->last_poll.sockets[i], multi->wsa_event, 0);
3223 s = ps->sockets[i];
3231 if(s == last_ps->sockets[j]) {
3308 s = last_ps->sockets[i];
[all …]
/curl/docs/cmdline-opts/
H A Dproxy.md27 Unix domain sockets are supported for socks proxy. Set localhost for the host
H A Dversion.md121 Unix sockets support is provided.
/curl/docs/
H A DTODO55 2.5 Edge-triggered sockets should work
57 2.7 Virtual external sockets
304 curl creates most sockets via the CURLOPT_OPENSOCKETFUNCTION callback and
306 does not use those functions and instead opens and closes the sockets itself.
309 sockets.
467 Make sure we do not ever loop because of non-blocking sockets returning
511 2.5 Edge-triggered sockets should work
526 2.7 Virtual external sockets

Completed in 46 milliseconds

12