/**************************************************************************/ /* enet_packet_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_packet_peer.h" void ENetPacketPeer::peer_disconnect(int p_data) { … } void ENetPacketPeer::peer_disconnect_later(int p_data) { … } void ENetPacketPeer::peer_disconnect_now(int p_data) { … } void ENetPacketPeer::ping() { … } void ENetPacketPeer::ping_interval(int p_interval) { … } int ENetPacketPeer::send(uint8_t p_channel, ENetPacket *p_packet) { … } void ENetPacketPeer::reset() { … } void ENetPacketPeer::throttle_configure(int p_interval, int p_acceleration, int p_deceleration) { … } void ENetPacketPeer::set_timeout(int p_timeout, int p_timeout_min, int p_timeout_max) { … } int ENetPacketPeer::get_max_packet_size() const { … } int ENetPacketPeer::get_available_packet_count() const { … } Error ENetPacketPeer::get_packet(const uint8_t **r_buffer, int &r_buffer_size) { … } Error ENetPacketPeer::put_packet(const uint8_t *p_buffer, int p_buffer_size) { … } IPAddress ENetPacketPeer::get_remote_address() const { … } int ENetPacketPeer::get_remote_port() const { … } bool ENetPacketPeer::is_active() const { … } double ENetPacketPeer::get_statistic(PeerStatistic p_stat) { … } ENetPacketPeer::PeerState ENetPacketPeer::get_state() const { … } int ENetPacketPeer::get_channels() const { … } void ENetPacketPeer::_on_disconnect() { … } void ENetPacketPeer::_queue_packet(ENetPacket *p_packet) { … } Error ENetPacketPeer::_send(int p_channel, PackedByteArray p_packet, int p_flags) { … } void ENetPacketPeer::_bind_methods() { … } ENetPacketPeer::ENetPacketPeer(ENetPeer *p_peer) { … } ENetPacketPeer::~ENetPacketPeer() { … }