Home
last modified time | relevance | path

Searched refs:socket (Results 1 – 25 of 101) sorted by relevance

12345

/curl/docs/cmdline-opts/
H A Dunix-socket.md4 Long: unix-socket
6 Help: Connect through this Unix domain socket
12 - abstract-unix-socket
14 - --unix-socket socket-path $URL
17 # `--unix-socket`
19 Connect through this Unix domain socket, instead of using the network.
H A Dabstract-unix-socket.md4 Long: abstract-unix-socket
6 Help: Connect via abstract Unix domain socket
12 - unix-socket
14 - --abstract-unix-socket socketpath $URL
17 # `--abstract-unix-socket`
19 Connect through an abstract Unix domain socket, instead of using the network.
20 Note: netstat shows the path of an abstract socket prefixed with `@`, however
H A Degd-file.md6 Help: EGD socket path for random data
22 Specify the path name to the Entropy Gathering Daemon socket. The socket is
H A Dsocks4.md21 assumed at port 1080. Using this socket type make curl resolve the hostname
24 To specify proxy on a Unix domain socket, use localhost for host, e.g.
25 `socks4://localhost/path/to/socket.sock`
/curl/docs/libcurl/
H A Dcurl_multi_assign.md17 curl_multi_assign - set data to associate with an internal socket
31 socket and a private pointer of the application. This is designed for
34 When set, the *sockptr* pointer is passed to all future socket callbacks
35 for the specific *sockfd* socket.
40 libcurl only keeps one single pointer associated with a socket, so calling
41 this function several times for the same socket makes the last set pointer get
44 The idea here being that this association (socket to private pointer) is
62 /* make our struct pointer associated with socket fd */
72 semi-dynamic data for each socket that we must wait for action on when using
75 When our socket-callback gets called by libcurl and we get to know about yet
[all …]
H A Dcurl_multi_socket_action.md35 When the application has detected action on a socket handled by libcurl, it
37 set to the socket with the action. When the events on a socket are known, they
41 CURL_CSELECT_ERR. When the events on a socket are unknown, pass 0 instead, and
49 socket and the counter decreases by one, it DOES NOT necessarily mean that
50 this exact socket/transfer is the one that completed. Use
54 updates in the socket (file descriptor) status by doing none, one, or multiple
55 calls to the socket callback function set with the
62 information on how long to wait for socket actions at most before doing the
78 2. Set the socket callback with CURLMOPT_SOCKETFUNCTION(3)
81 know what timeout value to use when waiting for socket activities.
[all …]
H A Dcurl_easy_send.md47 - the socket is used in non-blocking mode internally. When **CURLE_AGAIN**
49 until the socket is writable. The socket may be obtained using
52 Furthermore if you wait on the socket and it tells you it is writable,
74 /* Extract the socket from the curl handle - we need it for waiting. */
95 system facilities to wait until the socket is writable, and retry.
97 If there is no socket available to use from the previous transfer, this function
H A Dcurl_multi_socket.md38 curl_multi_socket(3) on a specific socket and the counter decreases by one, it
39 DOES NOT necessarily mean that this exact socket/transfer is the one that
44 socket (file descriptor) status by doing none, one, or multiple calls to the
45 socket callback function set with the CURLMOPT_SOCKETFUNCTION(3) option to
51 how long to wait for socket actions at most before doing the timeout action:
64 /* the event-library gets told when there activity on the socket 'fd',
H A Dcurl_easy_recv.md46 The call returns **CURLE_AGAIN** if there is no data to read - the socket is
49 socket may be obtained using curl_easy_getinfo(3) with
52 Wait on the socket only if curl_easy_recv(3) returns **CURLE_AGAIN**.
57 Furthermore if you wait on the socket and it tells you there is data to read,
81 /* Extract the socket from the curl handle - we need it for waiting. */
105 If there is no socket available to use from the previous transfer, this function
H A Dcurl_multi_wait.md70 Bit flag to *curl_waitfd.events* indicating the socket should poll on read
75 Bit flag to *curl_waitfd.events* indicating the socket should poll on high
80 Bit flag to *curl_waitfd.events* indicating the socket should poll on
81 write events such as the socket being clear to write without blocking.
/curl/docs/libcurl/opts/
H A DCURLMOPT_SOCKETFUNCTION.md26 curl_socket_t s, /* socket */
27 int what, /* describes the socket */
59 what activity on this socket the application is supposed to
61 for a socket that is already monitored.
72 socket. It can hold one of these values:
76 Wait for incoming data. For the socket to become readable.
80 Wait for outgoing data. For the socket to become writable.
111 /* remove the socket from our collection */
114 /* wait for read on this socket */
117 /* wait for write on this socket */
[all …]
H A DCURLMOPT_SOCKETDATA.md18 CURLMOPT_SOCKETDATA - custom pointer passed to the socket callback
30 A data *pointer* to pass to the socket callback set with the
33 This pointer is not touched by libcurl but is only passed in as the socket
55 /* remove the socket from our collection */
58 /* wait for read on this socket */
61 /* wait for write on this socket */
71 /* ... use socket callback and custom pointer */
H A DCURLOPT_SOCKOPTFUNCTION.md18 CURLOPT_SOCKOPTFUNCTION - callback for setting socket options
26 CURLSOCKTYPE_IPCXN, /* socket created for a specific IP connection */
27 CURLSOCKTYPE_ACCEPT, /* socket created by accept() call */
51 exact purpose for this particular socket:
58 created socket descriptor to the callback in the *curlfd* parameter so
66 error to the library and it closes the socket and returns
68 *CURL_SOCKOPT_ALREADY_CONNECTED*, to tell libcurl that the socket is
70 application to pass in an already connected socket with
83 /* make libcurl use the already established socket 'sockfd' */
112 /* call this function to get a socket */
[all …]
H A DCURLINFO_ACTIVESOCKET.md19 CURLINFO_ACTIVESOCKET - get the active socket
27 curl_socket_t *socket);
32 Pass a pointer to a curl_socket_t to receive the most recently active socket
33 used for the transfer connection by this curl session. If the socket is no
35 with the socket, you must call curl_easy_cleanup(3) as usual on the easy
36 handle and let libcurl close the socket and cleanup other resources associated
37 with the handle. This option returns the active socket only after the transfer
66 /* Extract the socket from the curl handle */
H A DCURLOPT_OPENSOCKETFUNCTION.md18 CURLOPT_OPENSOCKETFUNCTION - callback for opening socket
26 CURLSOCKTYPE_IPCXN, /* socket created for a specific IP connection */
49 This callback function gets called by libcurl instead of the *socket(2)*
51 this particular socket. *CURLSOCKTYPE_IPCXN* is for IP based connections
60 function should return the newly created socket or *CURL_SOCKET_BAD* in
62 additional *setsockopt(2)* calls can of course be done on the socket at
69 the socket back with this callback and then use
76 return socket(addr->family, addr->socktype, addr->protocol);
84 /* make libcurl use the already established socket 'sockfd' */
113 /* call this function to get a socket */
[all …]
H A DCURLINFO_LASTSOCKET.md19 CURLINFO_LASTSOCKET - get the last socket used
26 CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_LASTSOCKET, long *socket);
33 Pass a pointer to a long to receive the last socket used by this curl
34 session. If the socket is no longer valid, -1 is returned. When you finish
35 working with the socket, you must call curl_easy_cleanup(3) as usual and
36 let libcurl close the socket and cleanup other resources associated with the
66 /* Extract the socket from the curl handle */
H A DCURLOPT_OPENSOCKETDATA.md18 CURLOPT_OPENSOCKETDATA - pointer passed to open socket callback
31 argument in the open socket callback set with
43 /* make libcurl use the already established socket 'sockfd' */
51 /* the actual externally set socket is passed in via the OPENSOCKETDATA
73 /* call this function to get a socket */
77 /* call this function to set options for the socket */
H A DCURLOPT_CLOSESOCKETFUNCTION.md17 CURLOPT_CLOSESOCKETFUNCTION - callback to socket close replacement
42 CURLOPT_CLOSESOCKETDATA(3). *item* is the socket libcurl wants to be
47 Use the standard socket close function.
H A DCURLOPT_ABSTRACT_UNIX_SOCKET.md17 CURLOPT_ABSTRACT_UNIX_SOCKET - abstract Unix domain socket
30 Enables the use of an abstract Unix domain socket instead of establishing a
32 null-terminated string holding the path of the socket. The path is set to
H A DCURLOPT_LOCALPORT.md18 CURLOPT_LOCALPORT - local port number to use for socket
30 Pass a long. This sets the local port number of the socket used for the
/curl/tests/http/testenv/
H A Dports.py28 import socket
39 s = socket.socket(type=ptype)
H A Denv.py31 import socket
116 'ftp': socket.SOCK_STREAM,
117 'ftps': socket.SOCK_STREAM,
118 'http': socket.SOCK_STREAM,
119 'https': socket.SOCK_STREAM,
121 'proxy': socket.SOCK_STREAM,
122 'proxys': socket.SOCK_STREAM,
123 'h2proxys': socket.SOCK_STREAM,
124 'caddy': socket.SOCK_STREAM,
125 'caddys': socket.SOCK_STREAM,
[all …]
/curl/tests/http/
H A Dtest_11_unix.py29 import socket
61 self._socket = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
/curl/tests/data/
H A Dtest143528 simple HTTP GET over Unix socket
31 --unix-socket %HTTPUNIXPATH http://server-interpreted.example.com/%TESTNUMBER
/curl/src/
H A Dtool_cb_soc.c57 return socket(addr->family, addr->socktype, protocol); in tool_socket_open_mptcp_cb()

Completed in 37 milliseconds

12345