Struct AspnExtendedSerializedMessage

Struct Documentation

struct AspnExtendedSerializedMessage

Serialized data with an identifier that can be used for message routing through the pntOS system. The serialized data can be used for communication between plugins where only the sending and receiving plugins need to know how to encode or decode the message.

UNSTABLE: This feature is unstable and is not yet considered part of the stable pntOS API. Usage of this feature is highly discouraged in non-experimental code, and its definition may change at any time.

Public Members

AspnBase base
int64_t elapsed_nsec

Whole number nanoseconds elapsed since timestamp’s zero epoch. If negative, whole number nanoseconds until timestamp’s zero epoch.

char *identifier

A unique identifier for this serialized message

uint32_t data_len

The length of the above data array.

unsigned char *data

A pointer to a serialized data stream. The data stream format can be based on the content of the above identifier. Two plugins communicating by sharing this data must agree on a format, such that they both interpret the data the same way.