libamxb  4.8.2
Bus Agnostic C API
amxb_connect.h File Reference

Ambiorix Bus Agnostic connection API. More...

Go to the source code of this file.

Functions

int amxb_connect (amxb_bus_ctx_t **ctx, const char *uri)
 Create a bus connection. More...
 
int amxb_connect_intf (amxb_bus_ctx_t **ctx, const char *uri, const char *intf)
 Create a bus connection. More...
 
int amxb_listen (amxb_bus_ctx_t **ctx, const char *uri)
 Create a listen socket. More...
 
int amxb_accept (amxb_bus_ctx_t *listen_ctx, amxb_bus_ctx_t **accepted_ctx)
 Accepts an incomming connection request. More...
 
int amxb_disconnect (amxb_bus_ctx_t *ctx)
 Disconnects a bus connection. More...
 
void amxb_free (amxb_bus_ctx_t **ctx)
 Frees allocated memory. More...
 
amxb_bus_ctx_tamxb_find_uri (const char *uri)
 Find the bus context for a given uri. More...
 
amxc_array_t * amxb_list_uris (void)
 List all open connections by their uri. More...
 
int amxb_get_fd (const amxb_bus_ctx_t *const ctx)
 Get the connection file descriptor. More...
 
int amxb_read (const amxb_bus_ctx_t *const ctx)
 Reads data from the file descriptor. More...
 
int amxb_read_raw (const amxb_bus_ctx_t *const ctx, void *buf, size_t count)
 Attempts to read up to count bytes from the file descriptor into the buffer starting at buf. More...
 
static void amxb_set_access (amxb_bus_ctx_t *const ctx, uint32_t access)
 Sets the access method. More...
 
static bool amxb_is_listen_socket (const amxb_bus_ctx_t *const ctx)
 Checks if the provided context is a listen socket. More...
 
static bool amxb_is_data_socket (const amxb_bus_ctx_t *const ctx)
 Checks if the provided context is a data socket. More...
 

Detailed Description

Ambiorix Bus Agnostic connection API.

Definition in file amxb_connect.h.