You've already forked godot
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:
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user