libamxo
4.3.4
Object Definition Language (ODL) parsing
|
Functions | |
int | amxo_connection_add (amxo_parser_t *parser, int fd, amxo_fd_cb_t reader, const char *uri, amxo_con_type_t type, void *priv) |
Adds a file descriptor (fd) to the list of fds that must be watched. More... | |
int | amxo_connection_wait_write (amxo_parser_t *parser, int fd, amxo_fd_cb_t writer) |
Adds a watcher to check if a fd is ready for write. More... | |
int | amxo_connection_remove (amxo_parser_t *parser, int fd) |
Removes the fd from the connection list. More... | |
amxo_connection_t * | amxo_connection_get (amxo_parser_t *parser, int fd) |
Gets the connection data for a file descriptor. More... | |
int | amxo_connection_set_el_data (amxo_parser_t *parser, int fd, void *el_data) |
Sets event-loop data. More... | |
amxo_connection_t * | amxo_connection_get_first (amxo_parser_t *parser, amxo_con_type_t type) |
Gets the first connection of the given type. More... | |
amxo_connection_t * | amxo_connection_get_next (amxo_parser_t *parser, amxo_connection_t *con, amxo_con_type_t type) |
Gets the next connection data for a file descriptor. More... | |
int amxo_connection_add | ( | amxo_parser_t * | parser, |
int | fd, | ||
amxo_fd_cb_t | reader, | ||
const char * | uri, | ||
amxo_con_type_t | type, | ||
void * | priv | ||
) |
Adds a file descriptor (fd) to the list of fds that must be watched.
This function is deprecated use amxp_connection_add instead.
parser | the odl parser instance |
fd | the fd that must be watched |
reader | the read callback function, is called when data is available for read |
uri | (option, can be NULL) a uri representing the fd |
type | one of AMXO_BUS, AMXO_LISTEN, AMXO_CUSTOM |
priv | private data, will be passed to the callback function |
amxo_connection_t* amxo_connection_get | ( | amxo_parser_t * | parser, |
int | fd | ||
) |
Gets the connection data for a file descriptor.
This function is deprecated use amxp_connection_get instead.
parser | the odl parser instance |
fd | the fd that must be watched |
amxo_connection_t* amxo_connection_get_first | ( | amxo_parser_t * | parser, |
amxo_con_type_t | type | ||
) |
Gets the first connection of the given type.
This function is deprecated use amxp_connection_get_first instead.
parser | the odl parser instance |
type | one of AMXO_BUS, AMXO_LISTEN, AMXO_CUSTOM |
amxo_connection_t* amxo_connection_get_next | ( | amxo_parser_t * | parser, |
amxo_connection_t * | con, | ||
amxo_con_type_t | type | ||
) |
Gets the next connection data for a file descriptor.
This function is deprecated use amxp_connection_get_next instead.
parser | the odl parser instance |
con | starting point reference |
type | one of AMXO_BUS, AMXO_LISTEN, AMXO_CUSTOM |
int amxo_connection_remove | ( | amxo_parser_t * | parser, |
int | fd | ||
) |
Removes the fd from the connection list.
This function is deprecated use amxp_connection_remove instead.
parser | the odl parser instance |
fd | the fd that must be watched |
int amxo_connection_set_el_data | ( | amxo_parser_t * | parser, |
int | fd, | ||
void * | el_data | ||
) |
Sets event-loop data.
This function is deprecated use amxp_connection_set_el_data instead.
parser | the odl parser instance |
fd | the fd that must be watched |
el_data | some event loop data |
int amxo_connection_wait_write | ( | amxo_parser_t * | parser, |
int | fd, | ||
amxo_fd_cb_t | writer | ||
) |
Adds a watcher to check if a fd is ready for write.
This function is deprecated use amxp_connection_wait_write instead.
parser | the odl parser instance |
fd | the fd that must be watched |
writer | a callback function called when the socket is available for write |