ENetConnection

Inherits: RefCounted < Object

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

Methods

void

bandwidth_limit ( int in_bandwidth=0, int out_bandwidth=0 )

void

broadcast ( int channel, PackedByteArray packet, int flags )

void

channel_limit ( int limit )

void

compress ( CompressionMode mode )

ENetPacketPeer

connect_to_host ( String address, int port, int channels=0, int data=0 )

Error

create_host ( int max_peers=32, int max_channels=0, int in_bandwidth=0, int out_bandwidth=0 )

Error

create_host_bound ( String bind_address, int bind_port, int max_peers=32, int max_channels=0, int in_bandwidth=0, int out_bandwidth=0 )

void

destroy ( )

Error

dtls_client_setup ( String hostname, TLSOptions client_options=null )

Error

dtls_server_setup ( TLSOptions server_options )

void

flush ( )

int

get_local_port ( ) const

int

get_max_channels ( ) const

ENetPacketPeer[]

get_peers ( )

float

pop_statistic ( HostStatistic statistic )

void

refuse_new_connections ( bool refuse )

Array

service ( int timeout=0 )

void

socket_send ( String destination_address, int destination_port, PackedByteArray packet )


Enumerations

enum CompressionMode:

CompressionMode COMPRESS_NONE = 0

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

CompressionMode COMPRESS_RANGE_CODER = 1

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

CompressionMode COMPRESS_FASTLZ = 2

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

CompressionMode COMPRESS_ZLIB = 3

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

CompressionMode COMPRESS_ZSTD = 4

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


enum EventType:

EventType EVENT_ERROR = -1

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

EventType EVENT_NONE = 0

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

EventType EVENT_CONNECT = 1

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

EventType EVENT_DISCONNECT = 2

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

EventType EVENT_RECEIVE = 3

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


enum HostStatistic:

HostStatistic HOST_TOTAL_SENT_DATA = 0

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

HostStatistic HOST_TOTAL_SENT_PACKETS = 1

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

HostStatistic HOST_TOTAL_RECEIVED_DATA = 2

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

HostStatistic HOST_TOTAL_RECEIVED_PACKETS = 3

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


Method Descriptions

void bandwidth_limit ( int in_bandwidth=0, int out_bandwidth=0 )

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


void broadcast ( int channel, PackedByteArray packet, int flags )

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


void channel_limit ( int limit )

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


void compress ( CompressionMode mode )

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


ENetPacketPeer connect_to_host ( String address, int port, int channels=0, int data=0 )

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


Error create_host ( int max_peers=32, int max_channels=0, int in_bandwidth=0, int out_bandwidth=0 )

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


Error create_host_bound ( String bind_address, int bind_port, int max_peers=32, int max_channels=0, int in_bandwidth=0, int out_bandwidth=0 )

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


void destroy ( )

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


Error dtls_client_setup ( String hostname, TLSOptions client_options=null )

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


Error dtls_server_setup ( TLSOptions server_options )

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


void flush ( )

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


int get_local_port ( ) const

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


int get_max_channels ( ) const

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


ENetPacketPeer[] get_peers ( )

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


float pop_statistic ( HostStatistic statistic )

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


void refuse_new_connections ( bool refuse )

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


Array service ( int timeout=0 )

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


void socket_send ( String destination_address, int destination_port, PackedByteArray packet )

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