godot-cpp/include/gen/StreamPeerTCP.hpp

50 lines
1.2 KiB
C++

#ifndef GODOT_CPP_STREAMPEERTCP_HPP
#define GODOT_CPP_STREAMPEERTCP_HPP
#include <gdnative_api_struct.gen.h>
#include <stdint.h>
#include <core/CoreTypes.hpp>
#include <core/Ref.hpp>
#include "StreamPeerTCP.hpp"
#include "StreamPeer.hpp"
namespace godot {
class StreamPeerTCP : public StreamPeer {
public:
static void *___get_type_tag();
static void *___get_base_type_tag();
static inline const char *___get_class_name() { return (const char *) "StreamPeerTCP"; }
static inline Object *___get_from_variant(Variant a) { godot_object *o = (godot_object*) a; return (Object *) godot::nativescript_1_1_api->godot_nativescript_get_instance_binding_data(godot::_RegisterState::language_index, o); }
// enums
enum Status {
STATUS_NONE = 0,
STATUS_ERROR = 3,
STATUS_CONNECTED = 2,
STATUS_CONNECTING = 1,
};
// constants
static StreamPeerTCP *_new();
// methods
Error connect_to_host(const String host, const int64_t port);
bool is_connected_to_host() const;
StreamPeerTCP::Status get_status() const;
String get_connected_host() const;
int64_t get_connected_port() const;
void disconnect_from_host();
void set_no_delay(const bool enabled);
};
}
#endif