#include "enet_connection.h"
#include "enet_packet_peer.h"
#include "core/io/compression.h"
#include "core/io/ip.h"
#include "core/variant/typed_array.h"
void ENetConnection::broadcast(enet_uint8 p_channel, ENetPacket *p_packet) { … }
Error ENetConnection::create_host_bound(const IPAddress &p_bind_address, int p_port, int p_max_peers, int p_max_channels, int p_in_bandwidth, int p_out_bandwidth) { … }
Error ENetConnection::create_host(int p_max_peers, int p_max_channels, int p_in_bandwidth, int p_out_bandwidth) { … }
void ENetConnection::destroy() { … }
Ref<ENetPacketPeer> ENetConnection::connect_to_host(const String &p_address, int p_port, int p_channels, int p_data) { … }
ENetConnection::EventType ENetConnection::_parse_event(const ENetEvent &p_event, Event &r_event) { … }
ENetConnection::EventType ENetConnection::service(int p_timeout, Event &r_event) { … }
int ENetConnection::check_events(EventType &r_type, Event &r_event) { … }
void ENetConnection::flush() { … }
void ENetConnection::bandwidth_limit(int p_in_bandwidth, int p_out_bandwidth) { … }
void ENetConnection::channel_limit(int p_max_channels) { … }
void ENetConnection::bandwidth_throttle() { … }
void ENetConnection::compress(CompressionMode p_mode) { … }
double ENetConnection::pop_statistic(HostStatistic p_stat) { … }
int ENetConnection::get_max_channels() const { … }
int ENetConnection::get_local_port() const { … }
void ENetConnection::get_peers(List<Ref<ENetPacketPeer>> &r_peers) { … }
TypedArray<ENetPacketPeer> ENetConnection::_get_peers() { … }
Error ENetConnection::dtls_server_setup(const Ref<TLSOptions> &p_options) { … }
void ENetConnection::refuse_new_connections(bool p_refuse) { … }
Error ENetConnection::dtls_client_setup(const String &p_hostname, const Ref<TLSOptions> &p_options) { … }
Error ENetConnection::_create(ENetAddress *p_address, int p_max_peers, int p_max_channels, int p_in_bandwidth, int p_out_bandwidth) { … }
Array ENetConnection::_service(int p_timeout) { … }
void ENetConnection::_broadcast(int p_channel, PackedByteArray p_packet, int p_flags) { … }
void ENetConnection::socket_send(const String &p_address, int p_port, const PackedByteArray &p_packet) { … }
void ENetConnection::_bind_methods() { … }
ENetConnection::~ENetConnection() { … }
size_t ENetConnection::Compressor::enet_compress(void *context, const ENetBuffer *inBuffers, size_t inBufferCount, size_t inLimit, enet_uint8 *outData, size_t outLimit) { … }
size_t ENetConnection::Compressor::enet_decompress(void *context, const enet_uint8 *inData, size_t inLimit, enet_uint8 *outData, size_t outLimit) { … }
void ENetConnection::Compressor::setup(ENetHost *p_host, CompressionMode p_mode) { … }
ENetConnection::Compressor::Compressor(CompressionMode p_mode) { … }