Module bones_framework::networking::lan
source · Expand description
LAN matchmaking and socket implementation.
§Matchmaking
The LAN matchmaker works by allowing the player to start a match and wait for people to join it, or to join player’s started match.
Communication happens directly between LAN peers over the QUIC protocol.
Structs§
- The type of the
LAN_MATCHMAKER
channel. - Service discover info and ping.
- Receiver for LAN service discovery channel.
Enums§
- A request that may be sent to the
LAN_MATCHMAKER
. - A response that may come from the
LAN_MATCHMAKER
.
Functions§
- Join a server hosted by someone else.
- Leave a joined server.
- Get the current host info or create a new one. When there’s an existing service but its
service_name
is different, the service is recreated and only then the returnedbool
istrue
. - Update server pings and turn on service discovery.
- Host a server.
- Stop hosting a server.
- Wait for a joined game to start.
- Wait for players to join a hosted server.