godot/modules/websocket/wsl_peer.cpp

/**************************************************************************/
/*  wsl_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 "wsl_peer.h"

#ifndef WEB_ENABLED

#include "core/io/stream_peer_tls.h"

CryptoCore::RandomGenerator *WSLPeer::_static_rng =;

void WSLPeer::initialize() {}

void WSLPeer::deinitialize() {}

///
/// Resolver
///
void WSLPeer::Resolver::start(const String &p_host, int p_port) {}

void WSLPeer::Resolver::stop() {}

void WSLPeer::Resolver::try_next_candidate(Ref<StreamPeerTCP> &p_tcp) {}

///
/// Server functions
///
Error WSLPeer::accept_stream(Ref<StreamPeer> p_stream) {}

bool WSLPeer::_parse_client_request() {}

Error WSLPeer::_do_server_handshake() {}

///
/// Client functions
///
void WSLPeer::_do_client_handshake() {}

bool WSLPeer::_verify_server_response() {}

Error WSLPeer::connect_to_url(const String &p_url, Ref<TLSOptions> p_options) {}

///
/// Callback functions.
///
ssize_t WSLPeer::_wsl_recv_callback(wslay_event_context_ptr ctx, uint8_t *data, size_t len, int flags, void *user_data) {}

ssize_t WSLPeer::_wsl_send_callback(wslay_event_context_ptr ctx, const uint8_t *data, size_t len, int flags, void *user_data) {}

int WSLPeer::_wsl_genmask_callback(wslay_event_context_ptr ctx, uint8_t *buf, size_t len, void *user_data) {}

void WSLPeer::_wsl_msg_recv_callback(wslay_event_context_ptr ctx, const struct wslay_event_on_msg_recv_arg *arg, void *user_data) {}

wslay_event_callbacks WSLPeer::_wsl_callbacks =;

String WSLPeer::_generate_key() {}

String WSLPeer::_compute_key_response(String p_key) {}

void WSLPeer::poll() {}

Error WSLPeer::_send(const uint8_t *p_buffer, int p_buffer_size, wslay_opcode p_opcode) {}

Error WSLPeer::send(const uint8_t *p_buffer, int p_buffer_size, WriteMode p_mode) {}

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

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

int WSLPeer::get_available_packet_count() const {}

int WSLPeer::get_current_outbound_buffered_amount() const {}

void WSLPeer::close(int p_code, String p_reason) {}

IPAddress WSLPeer::get_connected_host() const {}

uint16_t WSLPeer::get_connected_port() const {}

String WSLPeer::get_selected_protocol() const {}

String WSLPeer::get_requested_url() const {}

void WSLPeer::set_no_delay(bool p_enabled) {}

void WSLPeer::_clear() {}

WSLPeer::WSLPeer() {}

WSLPeer::~WSLPeer() {}

#endif // WEB_ENABLED