CNDP  22.08.0
csock_cfg Struct Reference

#include <csock.h>

Data Fields

uint32_t flags
 
char * host_addr
 
csock_client_fn_tclient_fn
 
csock_read_tread_fn
 
csock_write_twrite_fn
 
csock_close_tclose_fn
 

Detailed Description

Configuration structure

Examples
examples/cli/main.c.

Definition at line 78 of file csock.h.

Field Documentation

◆ flags

uint32_t flags

Flags for server or client or non-blocking or ...

Examples
examples/cli/main.c.

Definition at line 79 of file csock.h.

◆ host_addr

char* host_addr

Host address or path

Examples
examples/cli/main.c.

Definition at line 80 of file csock.h.

◆ client_fn

csock_client_fn_t* client_fn

Client function pointer

Examples
examples/cli/main.c.

Definition at line 82 of file csock.h.

◆ read_fn

csock_read_t* read_fn

Read function

Definition at line 83 of file csock.h.

◆ write_fn

csock_write_t* write_fn

Write function

Definition at line 84 of file csock.h.

◆ close_fn

csock_close_t* close_fn

Close function

Definition at line 85 of file csock.h.


The documentation for this struct was generated from the following file: