1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2025-10-05 21:59:27 +00:00

Document callback type in man page for ares_set_socket_callback

This commit is contained in:
Andrew Ayer
2016-02-09 10:08:23 -08:00
parent 11e37a92ef
commit 2b6a1fbee7

View File

@ -6,6 +6,10 @@ ares_set_socket_callback \- Set a socket creation callback
.nf
.B #include <ares.h>
.PP
.B typedef int (*ares_sock_create_callback)(ares_socket_t \fIsocket_fd\fP,
int \fItype\fP,
void *\fIuserdata\fP)
.PP
.B void ares_set_socket_callback(ares_channel \fIchannel\fP,
ares_sock_create_callback \fIcallback\fP,
void *\fIuserdata\fP)