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
orclient
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
- Network
Event - Possible network events, returned by
Peer.recv()
. - Peer
State - 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.