godot/modules/enet/enet_multiplayer_peer.cpp

/**************************************************************************/
/*  enet_multiplayer_peer.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_multiplayer_peer.h"

#include "core/io/ip.h"
#include "core/io/marshalls.h"
#include "core/os/os.h"

void ENetMultiplayerPeer::set_target_peer(int p_peer) {}

int ENetMultiplayerPeer::get_packet_peer() const {}

MultiplayerPeer::TransferMode ENetMultiplayerPeer::get_packet_mode() const {}

int ENetMultiplayerPeer::get_packet_channel() const {}

Error ENetMultiplayerPeer::create_server(int p_port, int p_max_clients, int p_max_channels, int p_in_bandwidth, int p_out_bandwidth) {}

Error ENetMultiplayerPeer::create_client(const String &p_address, int p_port, int p_channel_count, int p_in_bandwidth, int p_out_bandwidth, int p_local_port) {}

Error ENetMultiplayerPeer::create_mesh(int p_id) {}

Error ENetMultiplayerPeer::add_mesh_peer(int p_id, Ref<ENetConnection> p_host) {}

void ENetMultiplayerPeer::_store_packet(int32_t p_source, ENetConnection::Event &p_event) {}

void ENetMultiplayerPeer::_disconnect_inactive_peers() {}

void ENetMultiplayerPeer::poll() {}

bool ENetMultiplayerPeer::is_server() const {}

bool ENetMultiplayerPeer::is_server_relay_supported() const {}

void ENetMultiplayerPeer::disconnect_peer(int p_peer, bool p_force) {}

void ENetMultiplayerPeer::close() {}

int ENetMultiplayerPeer::get_available_packet_count() const {}

Error ENetMultiplayerPeer::get_packet(const uint8_t **r_buffer, int &r_buffer_size) {}

Error ENetMultiplayerPeer::put_packet(const uint8_t *p_buffer, int p_buffer_size) {}

int ENetMultiplayerPeer::get_max_packet_size() const {}

void ENetMultiplayerPeer::_pop_current_packet() {}

MultiplayerPeer::ConnectionStatus ENetMultiplayerPeer::get_connection_status() const {}

int ENetMultiplayerPeer::get_unique_id() const {}

void ENetMultiplayerPeer::set_refuse_new_connections(bool p_enabled) {}

Ref<ENetConnection> ENetMultiplayerPeer::get_host() const {}

Ref<ENetPacketPeer> ENetMultiplayerPeer::get_peer(int p_id) const {}

void ENetMultiplayerPeer::_destroy_unused(ENetPacket *p_packet) {}

void ENetMultiplayerPeer::_bind_methods() {}

ENetMultiplayerPeer::ENetMultiplayerPeer() {}

ENetMultiplayerPeer::~ENetMultiplayerPeer() {}

// Sets IP for ENet to bind when using create_server or create_client
// if no IP is set, then ENet bind to ENET_HOST_ANY
void ENetMultiplayerPeer::set_bind_ip(const IPAddress &p_ip) {}