ares_init_options.3: match up sock_state_cb args (#141)

Fixes #140
pull/142/head
David Drysdale 8 years ago committed by GitHub
parent 0ef4a0c64b
commit cb6852664c
  1. 9
      ares_init_options.3

@ -139,16 +139,16 @@ should be set to a string of the characters "b" or "f", where "b"
indicates a DNS lookup and "f" indicates a lookup in the hosts file. indicates a DNS lookup and "f" indicates a lookup in the hosts file.
.TP 18 .TP 18
.B ARES_OPT_SOCK_STATE_CB .B ARES_OPT_SOCK_STATE_CB
.B void (*\fIsock_state_cb\fP)(void *data, int s, int read, int write); .B void (*\fIsock_state_cb\fP)(void *data, ares_socket_t socket_fd, int readable, int writable);
.br .br
.B void *\fIsock_state_cb_data\fP; .B void *\fIsock_state_cb_data\fP;
.br .br
A callback function to be invoked when a socket changes state. A callback function to be invoked when a socket changes state.
.I s .I socket_fd
will be passed the socket whose state has changed; will be passed the socket whose state has changed;
.I read .I readable
will be set to true if the socket should listen for read events, and will be set to true if the socket should listen for read events, and
.I write .I writable
will be set to true if the socket should listen for write events. will be set to true if the socket should listen for write events.
The value of The value of
.I sock_state_cb_data .I sock_state_cb_data
@ -280,4 +280,3 @@ Greg Hudson, MIT Information Systems
Copyright 1998 by the Massachusetts Institute of Technology. Copyright 1998 by the Massachusetts Institute of Technology.
.br .br
Copyright (C) 2004-2010 by Daniel Stenberg. Copyright (C) 2004-2010 by Daniel Stenberg.

Loading…
Cancel
Save