Crate ockam_transport_core

Source
Expand description

This crate provides the common code shared among the different Ockam’s transport protocols.

Each specific protocol is then supported in its own crate. For example, the TCP protocol is supported in the ockam_transport_tcp crate.

Currently available transports include:

  • ockam_transport_tcp - TCP transport
  • ockam_transport_udp - UDP transport
  • ockam_transport_ble - Bluetooth Low Energy Transport
  • ockam_transport_websocket - WebSocket Transport
  • ockam_transport_uds - Unix Domain Socket Transport

Structs§

HostnamePort
Hostname and port
SchemeHostnamePort
StaticHostnamePort
HostnamePort’s static counterpart usable for const values.

Enums§

TransportError
A Transport worker specific error type
ValidScheme

Constants§

MAXIMUM_MESSAGE_LENGTH

Traits§

Transport
Generic representation of a Transport At minimum, a Transport must be able

Functions§

encode_transport_message
Helper that creates a length-prefixed buffer containing the given TransportMessage’s payload
parse_socket_addr