mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 17:31:46 -05:00
Sync man page with reality
This commit is contained in:
parent
ced1e1e726
commit
c3266a5eb1
@ -14,7 +14,7 @@
|
|||||||
.\" this software for any purpose. It is provided "as is"
|
.\" this software for any purpose. It is provided "as is"
|
||||||
.\" without express or implied warranty.
|
.\" without express or implied warranty.
|
||||||
.\"
|
.\"
|
||||||
.TH ARES_EXPAND_NAME 3 "23 July 1998"
|
.TH ARES_EXPAND_NAME 3 "20 Nov 2009"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
ares_expand_name \- Expand a DNS-encoded domain name
|
ares_expand_name \- Expand a DNS-encoded domain name
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
@ -23,7 +23,7 @@ ares_expand_name \- Expand a DNS-encoded domain name
|
|||||||
.PP
|
.PP
|
||||||
.B int ares_expand_name(const unsigned char *\fIencoded\fP,
|
.B int ares_expand_name(const unsigned char *\fIencoded\fP,
|
||||||
.B const unsigned char *\fIabuf\fP, int \fIalen\fP, char **\fIs\fP,
|
.B const unsigned char *\fIabuf\fP, int \fIalen\fP, char **\fIs\fP,
|
||||||
.B int *\fIenclen\fP)
|
.B long *\fIenclen\fP)
|
||||||
.fi
|
.fi
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
The
|
The
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
.\" this software for any purpose. It is provided "as is"
|
.\" this software for any purpose. It is provided "as is"
|
||||||
.\" without express or implied warranty.
|
.\" without express or implied warranty.
|
||||||
.\"
|
.\"
|
||||||
.TH ARES_EXPAND_NAME 3 "23 July 1998"
|
.TH ARES_EXPAND_NAME 3 "20 Nov 2009"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
ares_expand_string \- Expand a length encoded string
|
ares_expand_string \- Expand a length encoded string
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
@ -23,7 +23,7 @@ ares_expand_string \- Expand a length encoded string
|
|||||||
.PP
|
.PP
|
||||||
.B int ares_expand_string(const unsigned char *\fIencoded\fP,
|
.B int ares_expand_string(const unsigned char *\fIencoded\fP,
|
||||||
.B const unsigned char *\fIabuf\fP, int \fIalen\fP, unsigned char **\fIs\fP,
|
.B const unsigned char *\fIabuf\fP, int \fIalen\fP, unsigned char **\fIs\fP,
|
||||||
.B int *\fIenclen\fP)
|
.B long *\fIenclen\fP)
|
||||||
.fi
|
.fi
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
The
|
The
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
.\" this software for any purpose. It is provided "as is"
|
.\" this software for any purpose. It is provided "as is"
|
||||||
.\" without express or implied warranty.
|
.\" without express or implied warranty.
|
||||||
.\"
|
.\"
|
||||||
.TH ARES_MKQUERY 3 "4 January 2000"
|
.TH ARES_MKQUERY 3 "20 Nov 2009"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
ares_mkquery \- Compose a single-question DNS query buffer
|
ares_mkquery \- Compose a single-question DNS query buffer
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
@ -22,7 +22,7 @@ ares_mkquery \- Compose a single-question DNS query buffer
|
|||||||
.B #include <ares.h>
|
.B #include <ares.h>
|
||||||
.PP
|
.PP
|
||||||
.B int ares_mkquery(const char *\fIname\fP, int \fIdnsclass\fP, int \fItype\fP,
|
.B int ares_mkquery(const char *\fIname\fP, int \fIdnsclass\fP, int \fItype\fP,
|
||||||
.B unsigned short \fIid\fP, int \fIrd\fP, char **\fIbuf\fP,
|
.B unsigned short \fIid\fP, int \fIrd\fP, unsigned char **\fIbuf\fP,
|
||||||
.B int *\fIbuflen\fP)
|
.B int *\fIbuflen\fP)
|
||||||
.fi
|
.fi
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
.\" this software for any purpose. It is provided "as is"
|
.\" this software for any purpose. It is provided "as is"
|
||||||
.\" without express or implied warranty.
|
.\" without express or implied warranty.
|
||||||
.\"
|
.\"
|
||||||
.TH ARES_PARSE_AAAA_REPLY 3 "10 March 2005"
|
.TH ARES_PARSE_AAAA_REPLY 3 "20 Nov 2009"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
ares_parse_aaaa_reply \- Parse a reply to a DNS query of type AAAA
|
ares_parse_aaaa_reply \- Parse a reply to a DNS query of type AAAA
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
@ -23,7 +23,7 @@ ares_parse_aaaa_reply \- Parse a reply to a DNS query of type AAAA
|
|||||||
.PP
|
.PP
|
||||||
.B int ares_parse_aaaa_reply(const unsigned char *\fIabuf\fP, int \fIalen\fP,
|
.B int ares_parse_aaaa_reply(const unsigned char *\fIabuf\fP, int \fIalen\fP,
|
||||||
.B struct hostent **\fIhost\fP,
|
.B struct hostent **\fIhost\fP,
|
||||||
.B struct addrttl *\fIaddrttls\fB, int *\fInaddrttls\fB);
|
.B struct addr6ttl *\fIaddrttls\fB, int *\fInaddrttls\fB);
|
||||||
.fi
|
.fi
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
The
|
The
|
||||||
@ -31,7 +31,7 @@ The
|
|||||||
function parses the response to a query of type AAAA into a
|
function parses the response to a query of type AAAA into a
|
||||||
.BR "struct hostent"
|
.BR "struct hostent"
|
||||||
and/or an array of
|
and/or an array of
|
||||||
.BR "struct addrttls" .
|
.BR "struct addr6ttl" .
|
||||||
The parameters
|
The parameters
|
||||||
.I abuf
|
.I abuf
|
||||||
and
|
and
|
||||||
|
@ -1,15 +1,20 @@
|
|||||||
.\" $Id$
|
.\" $Id$
|
||||||
.\"
|
.\"
|
||||||
.TH ARES_SET_SOCKET_CALLBACK 3 "2 Dec 2008"
|
.TH ARES_SET_SOCKET_CALLBACK 3 "20 Nov 2009"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
ares_set_socket_callback \- Set a socket creation callback
|
ares_set_socket_callback \- Set a socket creation callback
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.nf
|
.nf
|
||||||
int ares_set_socket_callback(ares_channel \fIchannel\fP,
|
.B #include <ares.h>
|
||||||
|
.PP
|
||||||
|
.B void ares_set_socket_callback(ares_channel \fIchannel\fP,
|
||||||
ares_sock_create_callback \fIcallback\fP,
|
ares_sock_create_callback \fIcallback\fP,
|
||||||
void *\fIuserdata\fP)
|
void *\fIuserdata\fP)
|
||||||
|
.PP
|
||||||
|
.B cc file.c -lcares
|
||||||
.fi
|
.fi
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
|
.PP
|
||||||
This function sets a \fIcallback\fP in the given ares channel handle. This
|
This function sets a \fIcallback\fP in the given ares channel handle. This
|
||||||
callback function will be invoked after the socket has been created, and
|
callback function will be invoked after the socket has been created, and
|
||||||
connected to the remote server. The callback must return ARES_SUCCESS if
|
connected to the remote server. The callback must return ARES_SUCCESS if
|
||||||
|
Loading…
x
Reference in New Issue
Block a user