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§
- LanMatchmaker
- The type of the
LAN_MATCHMAKERchannel. - Server
Info - Service discover info and ping.
- Service
Discovery Receiver - Receiver for LAN service discovery channel.
Enums§
- LanMatchmaker
Request - A request that may be sent to the
LAN_MATCHMAKER. - LanMatchmaker
Response - A response that may come from the
LAN_MATCHMAKER.
Functions§
- join_
server - Join a server hosted by someone else.
- leave_
server - Leave a joined server.
- prepare_
to_ host - Get the current host info or create a new one. When there’s an existing
service but its
service_nameis different, the service is recreated and only then the returnedboolistrue. - prepare_
to_ join - Update server pings and turn on service discovery.
- start_
server - Host a server.
- stop_
server - Stop hosting a server.
- wait_
game_ start - Wait for a joined game to start.
- wait_
players - Wait for players to join a hosted server.