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
hostorclientmode. - 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
- Network
Event - Possible network events, returned by
Peer.recv(). - Peer
State - Current peer state
- Reliability
- Tells how reliable a message is.
- Tangled
Init Error
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.