PhTransportLink_t

Entry in a linked list of transport data

Synopsis:

typedef struct __phlink PhTransportLink_t;
struct __phlink {
    void              *data;
    int unsigned       size;
    int                niovs;
    iov_t             *iovs;
    PhTransportLink_t *next;
    };

Description:

This structure is used to build linked lists of transport data, such as the one found in PhTransportCtrl_t (see PhCreateTransportCtrl()). The members include:

data
A pointer to the packed transport data; see below.
size
The size of the data, in bytes.
niovs
The number of entries in the iovs array?
iovs
An array of buffers used to store the data; see below.
next
A pointer to the next entry in the linked list.

If the data is copied into the structure, the data points to the copy. If the data isn't copied, the iovs vectors point to the original data.

Classification:

Photon

See also:

PhCreateTransportCtrl(), PhGetNextInlineData(), PhLinkTransportData(), PhReleaseTransportCtrl(), PhTransportCtrl_t, PhTransportFindLink(), PhTransportType()

Drag and Drop chapter of the Photon Programmer's Guide