class

Godot::ENetConnection

Inherits Godot::RefCounted < Godot::Object < Reference < Object

Constructors

new(pointer : Pointer(Void) = Pointer(Void).null)
Source

Instance methods

bandwidth_limit(in_bandwidth : Int64, out_bandwidth : Int64) : Void
Source
broadcast(channel : Int64, packet : Pointer(Void), flags : Int64) : Void
Source
channel_limit(limit : Int64) : Void
Source
compress(mode : Int64) : Void
Source
connect_to_host(address : String, port : Int64, channels : Int64, data : Int64) : ENetPacketPeer
Source
create_host(max_peers : Int64, max_channels : Int64, in_bandwidth : Int64, out_bandwidth : Int64) : Int64
Source
create_host_bound(bind_address : String, bind_port : Int64, max_peers : Int64, max_channels : Int64, in_bandwidth : Int64, out_bandwidth : Int64) : Int64
Source
destroy

Safely destroys or unreferences this RefCounted object.

Source
dtls_client_setup(hostname : String, client_options : TLSOptions) : Int64
Source
dtls_server_setup(server_options : TLSOptions) : Int64
Source
flush
Source
get_local_port
Source
get_max_channels
Source
get_peers
Source
pop_statistic(statistic : Int64) : Float64
Source
refuse_new_connections(refuse : Bool) : Void
Source
service(timeout : Int64) : Godot::Array
Source
socket_send(destination_address : String, destination_port : Int64, packet : Pointer(Void)) : Void
Source

Nested types