|
JDNS
|
Public Attributes | |
| void * | app |
| user-supplied context | |
| int(* | time_now )(jdns_session_t *s, void *app) |
| int(* | rand_int )(jdns_session_t *s, void *app) |
| void(* | debug_line )(jdns_session_t *s, void *app, const char *str) |
| int(* | udp_bind )(jdns_session_t *s, void *app, const jdns_address_t *addr, int port, const jdns_address_t *maddr) |
| void(* | udp_unbind )(jdns_session_t *s, void *app, int handle) |
| int(* | udp_read )(jdns_session_t *s, void *app, int handle, jdns_address_t *addr, int *port, unsigned char *buf, int *bufsize) |
| int(* | udp_write )(jdns_session_t *s, void *app, int handle, const jdns_address_t *addr, int port, unsigned char *buf, int bufsize) |
| void(* jdns_callbacks::debug_line) (jdns_session_t *s, void *app, const char *str) |
| s | session |
| app | user-supplied context |
| str | a line of debug text |
| int(* jdns_callbacks::rand_int) (jdns_session_t *s, void *app) |
| s | session |
| app | user-supplied context |
| int(* jdns_callbacks::time_now) (jdns_session_t *s, void *app) |
| s | session |
| app | user-supplied context |
| int(* jdns_callbacks::udp_bind) (jdns_session_t *s, void *app, const jdns_address_t *addr, int port, const jdns_address_t *maddr) |
| s | session |
| app | user-supplied context |
| addr | ip address of interface to bind to. 0 for all |
| port | port of interface to bind to. 0 for any |
| maddr | multicast address. 0 if not using multicast |
| int(* jdns_callbacks::udp_read) (jdns_session_t *s, void *app, int handle, jdns_address_t *addr, int *port, unsigned char *buf, int *bufsize) |
| s | session |
| app | user-supplied context |
| handle | handle of socket obtained with udp_bind |
| addr | store ip address of sender |
| port | store port of sender |
| buf | store packet content |
| bufsize | value contains max size, to be changed to real size |
| void(* jdns_callbacks::udp_unbind) (jdns_session_t *s, void *app, int handle) |
| s | session |
| app | user-supplied context |
| handle | handle of socket obtained with udp_bind |
| int(* jdns_callbacks::udp_write) (jdns_session_t *s, void *app, int handle, const jdns_address_t *addr, int port, unsigned char *buf, int bufsize) |
| s | session |
| app | user-supplied context |
| handle | handle of socket obtained with udp_bind |
| addr | ip address of recipient |
| port | port of recipient |
| buf | packet content |
| bufsize | size of packet |