diff options
Diffstat (limited to 'core/io/tcp_server.h')
-rw-r--r-- | core/io/tcp_server.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/core/io/tcp_server.h b/core/io/tcp_server.h index 3cbd8c58cf..736aa16f99 100644 --- a/core/io/tcp_server.h +++ b/core/io/tcp_server.h @@ -29,29 +29,29 @@ #ifndef TCP_SERVER_H #define TCP_SERVER_H -#include "io/stream_peer.h" #include "io/ip.h" +#include "io/stream_peer.h" #include "stream_peer_tcp.h" class TCP_Server : public Reference { - GDCLASS( TCP_Server, Reference ); -protected: + GDCLASS(TCP_Server, Reference); - static TCP_Server* (*_create)(); +protected: + static TCP_Server *(*_create)(); //bind helper static void _bind_methods(); -public: - virtual Error listen(uint16_t p_port, const IP_Address p_bind_address=IP_Address("*"))=0; - virtual bool is_connection_available() const=0; - virtual Ref<StreamPeerTCP> take_connection()=0; +public: + virtual Error listen(uint16_t p_port, const IP_Address p_bind_address = IP_Address("*")) = 0; + virtual bool is_connection_available() const = 0; + virtual Ref<StreamPeerTCP> take_connection() = 0; - virtual void stop()=0; //stop listening + virtual void stop() = 0; //stop listening static Ref<TCP_Server> create_ref(); - static TCP_Server* create(); + static TCP_Server *create(); TCP_Server(); }; |