#ifndef DTLS_SERVER_H #define DTLS_SERVER_H /* dtls_server.h */ #include "core/io/net_socket.h" #include "core/io/packet_peer_dtls.h" class DTLSServer : public Reference { GDCLASS(DTLSServer, Reference); protected: static DTLSServer *(*_create)(); static void _bind_methods(); static bool available; public: static bool is_available(); static DTLSServer *create(); virtual Error setup(Ref p_key, Ref p_cert, Ref p_ca_chain = Ref()) = 0; virtual void stop() = 0; virtual Ref take_connection(Ref p_peer) = 0; DTLSServer(); }; #endif // DTLS_SERVER_H