Returns the current state of the connection. See connectionstatus.
Returns the ID of the NetworkedMultiplayerPeer who sent the most recent packet.
Returns the ID of this NetworkedMultiplayerPeer.
Waits up to 1 second to receive a new network event.
Sets the peer to which packets will be sent. The id can be one of: constant TARGET_PEER_BROADCAST to send to all connected peers, constant TARGET_PEER_SERVER to send to the peer acting as server, a valid peer ID to send to that specific peer, a negative peer ID to send to all peers except that one. By default, the target peer is constant TARGET_PEER_BROADCAST.
If true, this NetworkedMultiplayerPeer refuses new connections.
The manner in which to send packets to the target_peer. See transfermode.
Construct a new instance of NetworkedMultiplayerPeer. Note: use memnew!NetworkedMultiplayerPeer instead.
A high-level network interface to simplify multiplayer interactions.
Manages the connection to network peers. Assigns unique IDs to each client connected to the server. See also MultiplayerAPI. Note: The high-level multiplayer API protocol is an implementation detail and isn't meant to be used by non-Godot servers. It may change without notice.