ENetProtocol

API: ENetProtocol #

Inherits: MPNetProtocolBase

Websocket Network Protocol

Properties #

Type Name Default
int bandwidth_in_limit 0
int bandwidth_out_limit 0
int compression_mode 3
Variant role ""
bool secure
CryptoKey server_private_key
X509Certificate ssl_certificate

Methods #

Returns Type Syntax
MultiplayerPeer host ( Variant port, Variant bind_ip, Variant max_players )
MultiplayerPeer join ( Variant address, Variant port )

Property Descriptions #

int bandwidth_in_limit

  • Default: 0

Bandwidth In Limit


int bandwidth_out_limit

  • Default: 0

Bandwidth Out Limit


int compression_mode

  • Default: 3

Set ENet host compression mode


Variant role

  • Default: ""

There’s currently no description for this property.


bool secure

  • Default: none

Specify if you needs encryption in your ENet


CryptoKey server_private_key

  • Default: none

Secure Private key for server


X509Certificate ssl_certificate

  • Default: none

Trusted SSL certificate for server & client


Method Descriptions #

MultiplayerPeer host ( Variant port, Variant bind_ip, Variant max_players )

Host function


MultiplayerPeer join ( Variant address, Variant port )

There’s currently no description for this method.