Anjay Lite
Loading...
Searching...
No Matches
anj_net_wrapper.h File Reference

Go to the source code of this file.

Functions

static const void * anj_net_get_system_socket (anj_net_binding_type_t type, anj_net_ctx_t *ctx)
 
static int anj_net_create_ctx (anj_net_binding_type_t type, anj_net_ctx_t **ctx, const anj_net_config_t *config)
 
static int anj_net_connect (anj_net_binding_type_t type, anj_net_ctx_t *ctx, const char *hostname, const char *port)
 
static int anj_net_send (anj_net_binding_type_t type, anj_net_ctx_t *ctx, size_t *bytes_sent, const uint8_t *buf, size_t length)
 
static int anj_net_recv (anj_net_binding_type_t type, anj_net_ctx_t *ctx, size_t *bytes_received, uint8_t *buf, size_t length)
 
static int anj_net_close (anj_net_binding_type_t type, anj_net_ctx_t *ctx)
 
static int anj_net_shutdown (anj_net_binding_type_t type, anj_net_ctx_t *ctx)
 
static int anj_net_cleanup_ctx (anj_net_binding_type_t type, anj_net_ctx_t **ctx)
 
static int anj_net_reuse_last_port (anj_net_binding_type_t type, anj_net_ctx_t *ctx)
 
static int anj_net_get_bytes_received (anj_net_binding_type_t type, anj_net_ctx_t *ctx, uint64_t *out_value)
 
static int anj_net_get_bytes_sent (anj_net_binding_type_t type, anj_net_ctx_t *ctx, uint64_t *out_value)
 
static int anj_net_get_inner_mtu (anj_net_binding_type_t type, anj_net_ctx_t *ctx, int32_t *out_value)
 
static int anj_net_get_state (anj_net_binding_type_t type, anj_net_ctx_t *ctx, anj_net_socket_state_t *out_value)
 

Function Documentation

◆ anj_net_cleanup_ctx()

static int anj_net_cleanup_ctx ( anj_net_binding_type_t  type,
anj_net_ctx_t **  ctx 
)
inlinestatic

◆ anj_net_close()

static int anj_net_close ( anj_net_binding_type_t  type,
anj_net_ctx_t ctx 
)
inlinestatic

◆ anj_net_connect()

static int anj_net_connect ( anj_net_binding_type_t  type,
anj_net_ctx_t ctx,
const char *  hostname,
const char *  port 
)
inlinestatic

◆ anj_net_create_ctx()

static int anj_net_create_ctx ( anj_net_binding_type_t  type,
anj_net_ctx_t **  ctx,
const anj_net_config_t config 
)
inlinestatic

◆ anj_net_get_bytes_received()

static int anj_net_get_bytes_received ( anj_net_binding_type_t  type,
anj_net_ctx_t ctx,
uint64_t *  out_value 
)
inlinestatic

◆ anj_net_get_bytes_sent()

static int anj_net_get_bytes_sent ( anj_net_binding_type_t  type,
anj_net_ctx_t ctx,
uint64_t *  out_value 
)
inlinestatic

◆ anj_net_get_inner_mtu()

static int anj_net_get_inner_mtu ( anj_net_binding_type_t  type,
anj_net_ctx_t ctx,
int32_t *  out_value 
)
inlinestatic

◆ anj_net_get_state()

static int anj_net_get_state ( anj_net_binding_type_t  type,
anj_net_ctx_t ctx,
anj_net_socket_state_t out_value 
)
inlinestatic

◆ anj_net_get_system_socket()

static const void * anj_net_get_system_socket ( anj_net_binding_type_t  type,
anj_net_ctx_t ctx 
)
inlinestatic

◆ anj_net_recv()

static int anj_net_recv ( anj_net_binding_type_t  type,
anj_net_ctx_t ctx,
size_t *  bytes_received,
uint8_t *  buf,
size_t  length 
)
inlinestatic

◆ anj_net_reuse_last_port()

static int anj_net_reuse_last_port ( anj_net_binding_type_t  type,
anj_net_ctx_t ctx 
)
inlinestatic

◆ anj_net_send()

static int anj_net_send ( anj_net_binding_type_t  type,
anj_net_ctx_t ctx,
size_t *  bytes_sent,
const uint8_t *  buf,
size_t  length 
)
inlinestatic

◆ anj_net_shutdown()

static int anj_net_shutdown ( anj_net_binding_type_t  type,
anj_net_ctx_t ctx 
)
inlinestatic