MultiplayerPeer

Inherits: PacketPeer < RefCounted < Object

Inherited By: ENetMultiplayerPeer, MultiplayerPeerExtension, OfflineMultiplayerPeer, WebRTCMultiplayerPeer, WebSocketMultiplayerPeer

There is currently no description for this class. Please help us by contributing one!

Properties

bool

refuse_new_connections

false

int

transfer_channel

0

TransferMode

transfer_mode

2

Methods

void

close ( )

void

disconnect_peer ( int peer, bool force=false )

int

generate_unique_id ( ) const

ConnectionStatus

get_connection_status ( ) const

int

get_packet_channel ( ) const

TransferMode

get_packet_mode ( ) const

int

get_packet_peer ( ) const

int

get_unique_id ( ) const

bool

is_server_relay_supported ( ) const

void

poll ( )

void

set_target_peer ( int id )


Signals

peer_connected ( int id )

There is currently no description for this signal. Please help us by contributing one!


peer_disconnected ( int id )

There is currently no description for this signal. Please help us by contributing one!


Enumerations

enum ConnectionStatus:

ConnectionStatus CONNECTION_DISCONNECTED = 0

There is currently no description for this enum. Please help us by contributing one!

ConnectionStatus CONNECTION_CONNECTING = 1

There is currently no description for this enum. Please help us by contributing one!

ConnectionStatus CONNECTION_CONNECTED = 2

There is currently no description for this enum. Please help us by contributing one!


enum TransferMode:

TransferMode TRANSFER_MODE_UNRELIABLE = 0

There is currently no description for this enum. Please help us by contributing one!

TransferMode TRANSFER_MODE_UNRELIABLE_ORDERED = 1

There is currently no description for this enum. Please help us by contributing one!

TransferMode TRANSFER_MODE_RELIABLE = 2

There is currently no description for this enum. Please help us by contributing one!


Constants

TARGET_PEER_BROADCAST = 0

There is currently no description for this constant. Please help us by contributing one!

TARGET_PEER_SERVER = 1

There is currently no description for this constant. Please help us by contributing one!


Property Descriptions

bool refuse_new_connections = false

  • void set_refuse_new_connections ( bool value )

  • bool is_refusing_new_connections ( )

There is currently no description for this property. Please help us by contributing one!


int transfer_channel = 0

  • void set_transfer_channel ( int value )

  • int get_transfer_channel ( )

There is currently no description for this property. Please help us by contributing one!


TransferMode transfer_mode = 2

There is currently no description for this property. Please help us by contributing one!


Method Descriptions

void close ( )

There is currently no description for this method. Please help us by contributing one!


void disconnect_peer ( int peer, bool force=false )

There is currently no description for this method. Please help us by contributing one!


int generate_unique_id ( ) const

There is currently no description for this method. Please help us by contributing one!


ConnectionStatus get_connection_status ( ) const

There is currently no description for this method. Please help us by contributing one!


int get_packet_channel ( ) const

There is currently no description for this method. Please help us by contributing one!


TransferMode get_packet_mode ( ) const

There is currently no description for this method. Please help us by contributing one!


int get_packet_peer ( ) const

There is currently no description for this method. Please help us by contributing one!


int get_unique_id ( ) const

There is currently no description for this method. Please help us by contributing one!


bool is_server_relay_supported ( ) const

There is currently no description for this method. Please help us by contributing one!


void poll ( )

There is currently no description for this method. Please help us by contributing one!


void set_target_peer ( int id )

There is currently no description for this method. Please help us by contributing one!