Skip to main content

Crate msrt_ffi

Crate msrt_ffi 

Source
Expand description

C ABI bindings for MSRT.

Structs§

MsrtConfig
C-compatible endpoint configuration.
MsrtEndpoint
Opaque MSRT endpoint handle.
MsrtEndpointStorage
Caller-owned endpoint storage for heap-free C integrations.
MsrtPollEvent
C-compatible poll event.
MsrtReceiveEvent
C-compatible receive report.

Constants§

ENDPOINT_STORAGE_BYTES
Conservative caller-owned endpoint storage size.
MAX_EVENT_BYTES
Maximum bytes carried by one C poll event.
MSRT_INTEGRITY_AEAD_DEFAULT
Backward-compatible alias for MSRT_INTEGRITY_SIP_TAG_DEFAULT.
MSRT_INTEGRITY_AEAD_KEY
Backward-compatible alias for MSRT_INTEGRITY_SIP_TAG_KEY.
MSRT_INTEGRITY_CRC16
Default CRC-16/XMODEM integrity.
MSRT_INTEGRITY_CRC32
CRC-32/ISO-HDLC integrity.
MSRT_INTEGRITY_CRC64
CRC-64/ECMA-182 integrity.
MSRT_INTEGRITY_SIP_TAG_DEFAULT
Keyed SipTag integrity using the MSRT default key.
MSRT_INTEGRITY_SIP_TAG_KEY
Keyed SipTag integrity using the configured key.
MSRT_PEER_CONNECTED
Endpoint has observed valid peer traffic.
MSRT_PEER_CONNECTING
Endpoint has a local session but has not yet observed valid peer traffic.
MSRT_PEER_DISCONNECTED
Endpoint is disconnected.
MSRT_POLL_IDLE
No endpoint action is pending.
MSRT_POLL_MESSAGE
A complete application message is available.
MSRT_POLL_SEND_FAILED
A reliable message failed to send.
MSRT_POLL_TRANSMIT
Event bytes should be transmitted by the caller.
MSRT_RECEIVE_ACK
An ACK packet was accepted.
MSRT_RECEIVE_CORRUPTED
A corrupted packet envelope was rejected.
MSRT_RECEIVE_DUPLICATE
A duplicate packet was accepted and acknowledged.
MSRT_RECEIVE_ERROR
The packet was valid but could not be applied.
MSRT_RECEIVE_INCOMPLETE
More bytes are needed.
MSRT_RECEIVE_NOISE
Noise was skipped.
MSRT_RECEIVE_NONE
No receive detail is available.
MSRT_RECEIVE_PACKET
A packet was accepted.
MSRT_RECEIVE_PING
A PING packet was accepted.
MSRT_RECEIVE_PONG
A PONG packet was accepted.
MSRT_ROLE_CLIENT
Active client endpoint role.
MSRT_ROLE_PASSIVE
Passive single-peer endpoint role.
MSRT_STATUS_INVALID_SLICE
A slice pointer was null while its length was non-zero.
MSRT_STATUS_INVALID_STORAGE
Caller-provided storage is too small or insufficiently aligned.
MSRT_STATUS_NO_SESSION
The endpoint is not currently connected or accepted.
MSRT_STATUS_NULL
A required pointer argument was null.
MSRT_STATUS_OK
Operation completed successfully.
MSRT_STATUS_PROTOCOL_ERROR
MSRT reported a protocol error.
MSRT_STATUS_UNSUPPORTED
The requested option value is not supported.