Crate tangled

Crate tangled 

Source
Expand description

Tangled - a work-in-progress UDP networking crate.

Structs§

Message
A message received from a peer.
Peer
Represents a network endpoint. Can be constructed in either host or client mode.
PeerId
A value which refers to a specific peer. Peer 0 is always the host.
Settings
Per-peer settings. Peers that are connected to the same host, as well as the host itself, should have the same settings.

Enums§

Destination
NetError
Describes possible errors
NetworkEvent
Possible network events, returned by Peer.recv().
PeerState
Current peer state
Reliability
Tells how reliable a message is.
TangledInitError

Constants§

MAX_MESSAGE_LEN
Maximum size of a message which fits into a single datagram. Somewhat arbitrary, but if it gets this large something probably went wrong.