godot/modules/enet/enet_connection.cpp

/**************************************************************************/
/*  enet_connection.cpp                                                   */
/**************************************************************************/
/*                         This file is part of:                          */
/*                             GODOT ENGINE                               */
/*                        https://godotengine.org                         */
/**************************************************************************/
/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */
/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                  */
/*                                                                        */
/* Permission is hereby granted, free of charge, to any person obtaining  */
/* a copy of this software and associated documentation files (the        */
/* "Software"), to deal in the Software without restriction, including    */
/* without limitation the rights to use, copy, modify, merge, publish,    */
/* distribute, sublicense, and/or sell copies of the Software, and to     */
/* permit persons to whom the Software is furnished to do so, subject to  */
/* the following conditions:                                              */
/*                                                                        */
/* The above copyright notice and this permission notice shall be         */
/* included in all copies or substantial portions of the Software.        */
/*                                                                        */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,        */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF     */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY   */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,   */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE      */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                 */
/**************************************************************************/

#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) {}