SocketInterface
Data Structures | |
struct | csp_socket_handle_t |
Unix socket driver handle. More... | |
Macros | |
#define | SOCKET_BUFFER_SIZE 256 |
Enumerations | |
enum | csp_if_socket_modes { CSP_SOCKET_SERVER = 0, CSP_SOCKET_CLIENT } |
Enum for csp socket mode. More... | |
Functions | |
int | csp_socket_init (csp_iface_t *socket_iface, csp_socket_handle_t *socket_driver) |
Init function for CSP socket interface. More... | |
int | csp_socket_close (csp_iface_t *socket_iface, csp_socket_handle_t *socket_driver) |
Data Structure Documentation
struct csp_socket_handle_t |
Unix socket driver handle.
Data Fields | |
int | socket_handle |
csp_thread_handle_t | rx_thread_handle |
bool | is_active |
Field Documentation
bool csp_socket_handle_t::is_active |
csp_thread_handle_t csp_socket_handle_t::rx_thread_handle |
Handle for RX thread
int csp_socket_handle_t::socket_handle |
Low level socket handle
Macro Definition Documentation
#define SOCKET_BUFFER_SIZE 256 |
Enumeration Type Documentation
enum csp_if_socket_modes |
Function Documentation
int csp_socket_close | ( | csp_iface_t * | socket_iface, |
csp_socket_handle_t * | socket_driver | ||
) |
int csp_socket_init | ( | csp_iface_t * | socket_iface, |
csp_socket_handle_t * | socket_driver | ||
) |
Init function for CSP socket interface.
- Parameters
-
socket_iface socket_driver
- Returns
- int CSP_ERR_NONE if success, otherwise error