aboutsummaryrefslogtreecommitdiff
path: root/core/io/tcp_server.h
diff options
context:
space:
mode:
authorRémi Verschelde2017-03-05 16:44:50 +0100
committerRémi Verschelde2017-03-05 16:44:50 +0100
commit5dbf1809c6e3e905b94b8764e99491e608122261 (patch)
tree5e5a5360db15d86d59ec8c6e4f7eb511388c5a9a /core/io/tcp_server.h
parent45438e9918d421b244bfd7776a30e67dc7f2d3e3 (diff)
downloadgodot-5dbf180.tar.gz
godot-5dbf180.tar.zst
godot-5dbf180.zip
A Whole New World (clang-format edition)
I can show you the code Pretty, with proper whitespace Tell me, coder, now when did You last write readable code? I can open your eyes Make you see your bad indent Force you to respect the style The core devs agreed upon A whole new world A new fantastic code format A de facto standard With some sugar Enforced with clang-format A whole new world A dazzling style we all dreamed of And when we read it through It's crystal clear That now we're in a whole new world of code
Diffstat (limited to '')
-rw-r--r--core/io/tcp_server.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/core/io/tcp_server.h b/core/io/tcp_server.h
index 3cbd8c58c..736aa16f9 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();
};