Skip to content
Start free evaluation

PdcommSecs1Io

Struct

Caller-provided I/O callback table.

typedef struct PdcommSecs1Io { ... } PdcommSecs1Io

Declared in: #include <pdcomm_secs1.h>

pdcomm_secs1_create() copies the table and borrows context. The context object and the callback code must outlive the endpoint. The endpoint never opens or closes an operating system handle.

Members

context

Field

Opaque pointer passed to both callbacks; must not be NULL.

void *context

Declared in: #include <pdcomm_secs1.h>

read

Field

Nonblocking read callback; must not be NULL.

PdcommSecs1Read read

Declared in: #include <pdcomm_secs1.h>

struct_size

Field

Size of this structure in bytes; set to sizeof(PdcommSecs1Io) or larger.

size_t struct_size

Declared in: #include <pdcomm_secs1.h>

write

Field

Nonblocking write callback; must not be NULL.

PdcommSecs1Write write

Declared in: #include <pdcomm_secs1.h>