|
Strophe
0.8
XMPP client library
|
Socket abstraction. More...
Data Structures | |
| struct | dnsquery_header |
| struct | dnsquery_question |
| struct | dnsquery_srvrdata |
| struct | dnsquery_resourcerecord |
Functions | |
| void | sock_initialize (void) |
| void | sock_shutdown (void) |
| int | sock_error (void) |
| static int | _in_progress (int error) |
| sock_t | sock_connect (const char *const host, const unsigned int port) |
| int | sock_close (const sock_t sock) |
| int | sock_set_blocking (const sock_t sock) |
| int | sock_set_nonblocking (const sock_t sock) |
| int | sock_read (const sock_t sock, void *const buff, const size_t len) |
| int | sock_write (const sock_t sock, const void *const buff, const size_t len) |
| int | sock_is_recoverable (const int error) |
| int | sock_connect_error (const sock_t sock) |
| void | netbuf_add_32bitnum (unsigned char *buf, int buflen, int *offset, unsigned int num) |
| void | netbuf_get_32bitnum (unsigned char *buf, int buflen, int *offset, unsigned int *num) |
| void | netbuf_add_16bitnum (unsigned char *buf, int buflen, int *offset, unsigned short num) |
| void | netbuf_get_16bitnum (unsigned char *buf, int buflen, int *offset, unsigned short *num) |
| void | netbuf_add_domain_name (unsigned char *buf, int buflen, int *offset, char *name) |
| int | calc_domain_name_size (unsigned char *buf, int buflen, int offset) |
| int | netbuf_get_domain_name (unsigned char *buf, int buflen, int *offset, char *namebuf, int namebuflen) |
| void | netbuf_add_dnsquery_header (unsigned char *buf, int buflen, int *offset, struct dnsquery_header *header) |
| void | netbuf_get_dnsquery_header (unsigned char *buf, int buflen, int *offset, struct dnsquery_header *header) |
| void | netbuf_add_dnsquery_question (unsigned char *buf, int buflen, int *offset, struct dnsquery_question *question) |
| void | netbuf_get_dnsquery_question (unsigned char *buf, int buflen, int *offset, struct dnsquery_question *question) |
| void | netbuf_get_dnsquery_srvrdata (unsigned char *buf, int buflen, int *offset, struct dnsquery_srvrdata *srvrdata) |
| void | netbuf_get_dnsquery_resourcerecord (unsigned char *buf, int buflen, int *offset, struct dnsquery_resourcerecord *rr) |
| int | sock_srv_lookup (const char *service, const char *proto, const char *domain, char *resulttarget, int resulttargetlength, int *resultport) |
Socket abstraction.
| void sock_initialize | ( | void | ) |
| void sock_shutdown | ( | void | ) |
| int sock_error | ( | void | ) |
| static int _in_progress | ( | int | error | ) | [static] |
| sock_t sock_connect | ( | const char *const | host, |
| const unsigned int | port | ||
| ) |
| int sock_close | ( | const sock_t | sock | ) |
| int sock_set_blocking | ( | const sock_t | sock | ) |
| int sock_set_nonblocking | ( | const sock_t | sock | ) |
| int sock_write | ( | const sock_t | sock, |
| const void *const | buff, | ||
| const size_t | len | ||
| ) |
| int sock_is_recoverable | ( | const int | error | ) |
| int sock_connect_error | ( | const sock_t | sock | ) |
| void netbuf_add_32bitnum | ( | unsigned char * | buf, |
| int | buflen, | ||
| int * | offset, | ||
| unsigned int | num | ||
| ) |
| void netbuf_get_32bitnum | ( | unsigned char * | buf, |
| int | buflen, | ||
| int * | offset, | ||
| unsigned int * | num | ||
| ) |
| void netbuf_add_16bitnum | ( | unsigned char * | buf, |
| int | buflen, | ||
| int * | offset, | ||
| unsigned short | num | ||
| ) |
| void netbuf_get_16bitnum | ( | unsigned char * | buf, |
| int | buflen, | ||
| int * | offset, | ||
| unsigned short * | num | ||
| ) |
| void netbuf_add_domain_name | ( | unsigned char * | buf, |
| int | buflen, | ||
| int * | offset, | ||
| char * | name | ||
| ) |
| int calc_domain_name_size | ( | unsigned char * | buf, |
| int | buflen, | ||
| int | offset | ||
| ) |
| int netbuf_get_domain_name | ( | unsigned char * | buf, |
| int | buflen, | ||
| int * | offset, | ||
| char * | namebuf, | ||
| int | namebuflen | ||
| ) |
| void netbuf_add_dnsquery_header | ( | unsigned char * | buf, |
| int | buflen, | ||
| int * | offset, | ||
| struct dnsquery_header * | header | ||
| ) |
| void netbuf_get_dnsquery_header | ( | unsigned char * | buf, |
| int | buflen, | ||
| int * | offset, | ||
| struct dnsquery_header * | header | ||
| ) |
| void netbuf_add_dnsquery_question | ( | unsigned char * | buf, |
| int | buflen, | ||
| int * | offset, | ||
| struct dnsquery_question * | question | ||
| ) |
| void netbuf_get_dnsquery_question | ( | unsigned char * | buf, |
| int | buflen, | ||
| int * | offset, | ||
| struct dnsquery_question * | question | ||
| ) |
| void netbuf_get_dnsquery_srvrdata | ( | unsigned char * | buf, |
| int | buflen, | ||
| int * | offset, | ||
| struct dnsquery_srvrdata * | srvrdata | ||
| ) |
| void netbuf_get_dnsquery_resourcerecord | ( | unsigned char * | buf, |
| int | buflen, | ||
| int * | offset, | ||
| struct dnsquery_resourcerecord * | rr | ||
| ) |
| int sock_srv_lookup | ( | const char * | service, |
| const char * | proto, | ||
| const char * | domain, | ||
| char * | resulttarget, | ||
| int | resulttargetlength, | ||
| int * | resultport | ||
| ) |