Socket Interface

group SocketInterface

Defines

SOCKET_BUFFER_SIZE

Enums

enum csp_if_socket_modes

Enum for csp socket mode.

Values:

CSP_SOCKET_SERVER = 0

Indicates a server socket

CSP_SOCKET_CLIENT

Indicates a client socket

Functions

int csp_socket_init(csp_iface_t *socket_iface, csp_socket_handle_t *socket_driver)

Init function for CSP socket interface.

Return
int CSP_ERR_NONE if success, otherwise error
Parameters
  • socket_iface:
  • socket_driver:

int csp_socket_close(csp_iface_t *socket_iface, csp_socket_handle_t *socket_driver)
struct csp_socket_handle_t
#include <csp_if_socket.h>

Unix socket driver handle.