26#ifndef _ASTERISK_NETSOCK_H
27#define _ASTERISK_NETSOCK_H
29#if defined(__cplusplus) || defined(c_plusplus)
70#if defined(__cplusplus) || defined(c_plusplus)
struct ast_sockaddr bindaddr
static struct ast_channel * callback(struct ast_channelstorage_instance *driver, ao2_callback_data_fn *cb_fn, void *arg, void *data, int ao2_flags)
I/O Management (derived from Cheops-NG)
int(* ast_io_cb)(int *id, int fd, short events, void *cbdata)
int ast_netsock_release(struct ast_netsock_list *list)
struct ast_netsock_list * ast_netsock_list_alloc(void)
int ast_netsock_set_qos(int sockfd, int tos, int cos, const char *desc)
struct ast_netsock * ast_netsock_bind(struct ast_netsock_list *list, struct io_context *ioc, const char *bindinfo, int defaultport, int tos, int cos, ast_io_cb callback, void *data)
void ast_netsock_unref(struct ast_netsock *ns)
int ast_netsock_sockfd(const struct ast_netsock *ns)
void * ast_netsock_data(const struct ast_netsock *ns)
struct ast_netsock * ast_netsock_find(struct ast_netsock_list *list, struct ast_sockaddr *addr)
const struct ast_sockaddr * ast_netsock_boundaddr(const struct ast_netsock *ns)
int ast_netsock_init(struct ast_netsock_list *list)
struct ast_netsock * ast_netsock_bindaddr(struct ast_netsock_list *list, struct io_context *ioc, struct ast_sockaddr *bindaddr, int tos, int cos, ast_io_cb callback, void *data)
Wrapper for network related headers, masking differences between various operating systems....
Socket address structure.
Global IO variables are now in a struct in order to be made threadsafe.