1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-26 15:46:23 +00:00

Bring that Whole New World to the Old Continent too

Applies the clang-format style to the 2.1 branch as done for master in
5dbf1809c6.
This commit is contained in:
Rémi Verschelde
2017-03-19 00:36:26 +01:00
parent 1d418afe86
commit f8db8a3faa
1308 changed files with 147754 additions and 174357 deletions

View File

@@ -29,33 +29,33 @@
#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 {
OBJ_TYPE( TCP_Server, Reference );
protected:
OBJ_TYPE(TCP_Server, Reference);
protected:
IP::Type ip_type;
static TCP_Server* (*_create)();
static TCP_Server *(*_create)();
//bind helper
Error _listen(uint16_t p_port, DVector<String> p_accepted_hosts=DVector<String>());
Error _listen(uint16_t p_port, DVector<String> p_accepted_hosts = DVector<String>());
static void _bind_methods();
public:
virtual void set_ip_type(IP::Type p_type);
virtual Error listen(uint16_t p_port, const List<String> *p_accepted_hosts=NULL)=0;
virtual bool is_connection_available() const=0;
virtual Ref<StreamPeerTCP> take_connection()=0;
virtual Error listen(uint16_t p_port, const List<String> *p_accepted_hosts = NULL) = 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();
};