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. Client can only connect to hosts, but they are able to send messages to any other peer connected to the same host, including the host itself.
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§

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

Constants§

MAX_MESSAGE_LEN
Maximum size of a message which fits into a single datagram.