OPENSOCKETFUNCTION.3: correct the purpose description
Reported-by: Jeff Mears Bug: https://curl.haxx.se/mail/lib-2019-12/0007.html Closes #4667
This commit is contained in:
parent
48da3ac67b
commit
0092b6bf8a
@ -5,7 +5,7 @@
|
|||||||
.\" * | (__| |_| | _ <| |___
|
.\" * | (__| |_| | _ <| |___
|
||||||
.\" * \___|\___/|_| \_\_____|
|
.\" * \___|\___/|_| \_\_____|
|
||||||
.\" *
|
.\" *
|
||||||
.\" * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
|
.\" * Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
.\" *
|
.\" *
|
||||||
.\" * This software is licensed as described in the file COPYING, which
|
.\" * This software is licensed as described in the file COPYING, which
|
||||||
.\" * you should have received as part of this distribution. The terms
|
.\" * you should have received as part of this distribution. The terms
|
||||||
@ -29,8 +29,6 @@ CURLOPT_OPENSOCKETFUNCTION \- set callback for opening sockets
|
|||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
CURLSOCKTYPE_IPCXN, /* socket created for a specific IP connection */
|
CURLSOCKTYPE_IPCXN, /* socket created for a specific IP connection */
|
||||||
CURLSOCKTYPE_ACCEPT, /* socket created by accept() call */
|
|
||||||
CURLSOCKTYPE_LAST /* never use */
|
|
||||||
} curlsocktype;
|
} curlsocktype;
|
||||||
|
|
||||||
struct curl_sockaddr {
|
struct curl_sockaddr {
|
||||||
@ -52,10 +50,9 @@ shown above.
|
|||||||
|
|
||||||
This callback function gets called by libcurl instead of the \fIsocket(2)\fP
|
This callback function gets called by libcurl instead of the \fIsocket(2)\fP
|
||||||
call. The callback's \fIpurpose\fP argument identifies the exact purpose for
|
call. The callback's \fIpurpose\fP argument identifies the exact purpose for
|
||||||
this particular socket: \fICURLSOCKTYPE_IPCXN\fP is for IP based connections
|
this particular socket. \fICURLSOCKTYPE_IPCXN\fP is for IP based connections
|
||||||
and \fICURLSOCKTYPE_ACCEPT\fP is for sockets created after accept() - such as
|
and is the only purpose currently used in libcurl. Future versions of libcurl
|
||||||
when doing active FTP. Future versions of libcurl may support more
|
may support more purposes.
|
||||||
purposes.
|
|
||||||
|
|
||||||
The \fIclientp\fP pointer contains whatever user-defined value set using the
|
The \fIclientp\fP pointer contains whatever user-defined value set using the
|
||||||
\fICURLOPT_OPENSOCKETDATA(3)\fP function.
|
\fICURLOPT_OPENSOCKETDATA(3)\fP function.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user