mirror of
https://forge.univ-lyon1.fr/tplifap4/dungeonanddeamon.git
synced 2024-02-27 13:31:50 +01:00
lib + include + Godot dossier
This commit is contained in:
59
GodoBinding/include/gen/PacketPeerUDP.hpp
Normal file
59
GodoBinding/include/gen/PacketPeerUDP.hpp
Normal file
@@ -0,0 +1,59 @@
|
||||
#ifndef GODOT_CPP_PACKETPEERUDP_HPP
|
||||
#define GODOT_CPP_PACKETPEERUDP_HPP
|
||||
|
||||
|
||||
#include <gdnative_api_struct.gen.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include <core/CoreTypes.hpp>
|
||||
#include <core/Ref.hpp>
|
||||
|
||||
#include "PacketPeer.hpp"
|
||||
namespace godot {
|
||||
|
||||
|
||||
class PacketPeerUDP : public PacketPeer {
|
||||
struct ___method_bindings {
|
||||
godot_method_bind *mb_close;
|
||||
godot_method_bind *mb_get_packet_ip;
|
||||
godot_method_bind *mb_get_packet_port;
|
||||
godot_method_bind *mb_is_listening;
|
||||
godot_method_bind *mb_join_multicast_group;
|
||||
godot_method_bind *mb_leave_multicast_group;
|
||||
godot_method_bind *mb_listen;
|
||||
godot_method_bind *mb_set_broadcast_enabled;
|
||||
godot_method_bind *mb_set_dest_address;
|
||||
godot_method_bind *mb_wait;
|
||||
};
|
||||
static ___method_bindings ___mb;
|
||||
|
||||
public:
|
||||
static void ___init_method_bindings();
|
||||
|
||||
static inline const char *___get_class_name() { return (const char *) "PacketPeerUDP"; }
|
||||
static inline Object *___get_from_variant(Variant a) { godot_object *o = (godot_object*) a; return (o) ? (Object *) godot::nativescript_1_1_api->godot_nativescript_get_instance_binding_data(godot::_RegisterState::language_index, o) : nullptr; }
|
||||
|
||||
// enums
|
||||
|
||||
// constants
|
||||
|
||||
|
||||
static PacketPeerUDP *_new();
|
||||
|
||||
// methods
|
||||
void close();
|
||||
String get_packet_ip() const;
|
||||
int64_t get_packet_port() const;
|
||||
bool is_listening() const;
|
||||
Error join_multicast_group(const String multicast_address, const String interface_name);
|
||||
Error leave_multicast_group(const String multicast_address, const String interface_name);
|
||||
Error listen(const int64_t port, const String bind_address = "*", const int64_t recv_buf_size = 65536);
|
||||
void set_broadcast_enabled(const bool enabled);
|
||||
Error set_dest_address(const String host, const int64_t port);
|
||||
Error wait();
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user