virtualx-engine/modules/enet
Fabio Alessandrelli 7536d15fe3 [MP] Let MultiplayerAPI handle packet relaying and peer signaling.
MultiplayerPeer changes:

- Adds is_server_relay_supported virtual method

Informs the upper MultiplayerAPI layer if it can signal peers connected
to the server to other clients, and perform packet relaying among them.

- Adds get_packet_channel and get_packet_mode virtual methods

Allows the MultiplayerAPI to retrieve the channel and transfer modes to
use when relaying the last received packet.

SceneMultiplayerPeer changes:

- Implement peer signaling and packet relaying when the MultiplayerPeer
  advertise they are supported.

ENet, WebRTC, WebSocket changes:

- Removed custom code for relaying from WebSocket and ENet, and let it
  be handled by the upper layer.
- Update WebRTC to split create_client, create_server, and create_mesh,
  with the latter behaving like the old initialize with
  "server_compatibility = false", and the first two supporting the upper
  layer relaying protocol.
2022-10-27 18:08:58 +02:00
..
doc_classes [MP] Let MultiplayerAPI handle packet relaying and peer signaling. 2022-10-27 18:08:58 +02:00
config.py
enet_connection.cpp Replace Array return types with TypedArray 3 2022-08-24 12:53:36 +02:00
enet_connection.h Replace Array return types with TypedArray 3 2022-08-24 12:53:36 +02:00
enet_multiplayer_peer.cpp [MP] Let MultiplayerAPI handle packet relaying and peer signaling. 2022-10-27 18:08:58 +02:00
enet_multiplayer_peer.h [MP] Let MultiplayerAPI handle packet relaying and peer signaling. 2022-10-27 18:08:58 +02:00
enet_packet_peer.cpp [Net] Expose get_remote_address get_remote_port. 2022-08-26 10:47:55 +02:00
enet_packet_peer.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
register_types.cpp Refactor module initialization 2022-05-04 17:34:51 +02:00
register_types.h Refactor module initialization 2022-05-04 17:34:51 +02:00
SCsub