Inherited By: NetworkedMultiplayerENet
A high-level network interface to simplify multiplayer interactions.
|int||get_connection_status ( ) const|
|int||get_packet_peer ( ) const|
|int||get_unique_id ( ) const|
|void||poll ( )|
|void||set_target_peer ( int id )|
Emitted when a connection attempt fails.
Emitted when a connection attempt succeeds.
Emitted by the server when a client connects.
Emitted by the server when a client disconnects.
Emitted by clients when the server disconnects.
NetworkedMultiplayerPeerrefuses new connections. Default value:
target_peer. See enum TransferMode.
Manages the connection to network peers. Assigns unique IDs to each client connected to the server.
Returns the current state of the connection. See enum ConnectionStatus.
Returns the ID of the
NetworkedMultiplayerPeer who sent the most recent packet.
Returns the ID of this
Waits up to 1 second to receive a new network event.
The peer to which packets will be sent. Default value:
© 2014–2018 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.