Revert "Imported Upstream version 7.44.0"
[platform/upstream/curl.git] / docs / libcurl / opts / CURLOPT_SOCKOPTFUNCTION.html
index 211e800..07186d2 100644 (file)
@@ -4,20 +4,15 @@
 <title>CURLOPT_SOCKOPTFUNCTION man page</title>
 <meta name="generator" content="roffit">
 <STYLE type="text/css">
-pre {
-  overflow: auto;
-  margin: 0;
-}
-
-P.level0, pre.level0 {
+P.level0 {
  padding-left: 2em;
 }
 
-P.level1, pre.level1 {
+P.level1 {
  padding-left: 4em;
 }
 
-P.level2, pre.level2 {
+P.level2 {
  padding-left: 6em;
 }
 
@@ -52,26 +47,22 @@ p.roffit {
 
 <p class="level0"><a name="NAME"></a><h2 class="nroffsh">NAME</h2>
 <p class="level0">CURLOPT_SOCKOPTFUNCTION - set callback for setting socket options <a name="SYNOPSIS"></a><h2 class="nroffsh">SYNOPSIS</h2>
-<p class="level0"><pre class="level0">
-&#35;include &lt;curl/curl.h&gt;
-&nbsp;
-typedef enum  {
-&nbsp; CURLSOCKTYPE_IPCXN,  /* socket created for a specific IP connection */
-&nbsp; CURLSOCKTYPE_ACCEPT, /* socket created by accept() call */
-&nbsp; CURLSOCKTYPE_LAST    /* never use */
-} curlsocktype;
-&nbsp;
-&#35;define CURL_SOCKOPT_OK 0
-&#35;define CURL_SOCKOPT_ERROR 1 /* causes libcurl to abort and return
-&nbsp;                               CURLE_ABORTED_BY_CALLBACK */
-&#35;define CURL_SOCKOPT_ALREADY_CONNECTED 2
-&nbsp;
-int sockopt_callback(void *clientp,
-&nbsp;                    curl_socket_t curlfd,
-&nbsp;                    curlsocktype purpose);
-&nbsp;
-CURLcode curl_easy_setopt(CURL *handle, CURLOPT_SOCKOPTFUNCTION, sockopt_callback);
-</pre>
+<p class="level0"><pre>
+<p class="level0">#include &lt;curl/curl.h&gt;
+ <p class="level0">typedef enum  {
+ &nbsp; CURLSOCKTYPE_IPCXN,  /* socket created for a specific IP connection */
+ &nbsp; CURLSOCKTYPE_ACCEPT, /* socket created by accept() call */
+ &nbsp; CURLSOCKTYPE_LAST    /* never use */
+ } curlsocktype;
+ <p class="level0">#define CURL_SOCKOPT_OK 0
+ #define CURL_SOCKOPT_ERROR 1 /* causes libcurl to abort and return
+ &nbsp;                               CURLE_ABORTED_BY_CALLBACK */
+ #define CURL_SOCKOPT_ALREADY_CONNECTED 2
+ <p class="level0">int sockopt_callback(void *clientp,
+ &nbsp;                    curl_socket_t curlfd,
+ &nbsp;                    curlsocktype purpose);
+ <p class="level0">CURLcode curl_easy_setopt(CURL *handle, CURLOPT_SOCKOPTFUNCTION, sockopt_callback);
+ </pre>
 <a name="DESCRIPTION"></a><h2 class="nroffsh">DESCRIPTION</h2>
 <p class="level0">Pass a pointer to your callback function, which should match the prototype shown above. 
 <p class="level0">When set, this callback function gets called by libcurl when the socket has been created, but before the connect call to allow applications to change specific socket options. The callback's <span Class="emphasis">purpose</span> argument identifies the exact purpose for this particular socket: