Asterisk - The Open Source Telephony Project
21.4.1
|
Network socket handling. More...
#include "asterisk.h"
#include <ifaddrs.h>
#include "include/netsock.h"
#include "asterisk/netsock2.h"
#include "asterisk/utils.h"
#include "include/astobj.h"
Go to the source code of this file.
Data Structures | |
struct | ast_netsock |
struct | ast_netsock_list |
Functions | |
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) |
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) |
const struct ast_sockaddr * | ast_netsock_boundaddr (const struct ast_netsock *ns) |
void * | ast_netsock_data (const struct ast_netsock *ns) |
static void | ast_netsock_destroy (struct ast_netsock *netsock) |
struct ast_netsock * | ast_netsock_find (struct ast_netsock_list *list, struct ast_sockaddr *addr) |
int | ast_netsock_init (struct ast_netsock_list *list) |
struct ast_netsock_list * | ast_netsock_list_alloc (void) |
int | ast_netsock_release (struct ast_netsock_list *list) |
int | ast_netsock_set_qos (int sockfd, int tos, int cos, const char *desc) |
int | ast_netsock_sockfd (const struct ast_netsock *ns) |
void | ast_netsock_unref (struct ast_netsock *ns) |
Network socket handling.
Definition in file netsock.c.
int ast_netsock_set_qos | ( | int | sockfd, |
int | tos, | ||
int | cos, | ||
const char * | desc | ||
) |
Definition at line 162 of file netsock.c.
References ast_set_qos().