diff options
| author | Juan Linietsky | 2015-04-18 14:38:54 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2015-04-18 14:38:54 -0300 |
| commit | fdaa2920eb21fff3320a17e9239e04dfadecdb00 (patch) | |
| tree | b795fc468fa4b055d6b0d70a0f8120faef6f398f /platform/windows/tcp_server_winsock.h | |
| parent | 6b3cd13c8d35af9ecdc2e2e14ce71ee0c3d53e0b (diff) | |
| download | godot-fdaa2920eb21fff3320a17e9239e04dfadecdb00.tar.gz godot-fdaa2920eb21fff3320a17e9239e04dfadecdb00.tar.zst godot-fdaa2920eb21fff3320a17e9239e04dfadecdb00.zip | |
Diffstat (limited to 'platform/windows/tcp_server_winsock.h')
| -rw-r--r-- | platform/windows/tcp_server_winsock.h | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/platform/windows/tcp_server_winsock.h b/platform/windows/tcp_server_winsock.h index 2d54b6ce4..251612390 100644 --- a/platform/windows/tcp_server_winsock.h +++ b/platform/windows/tcp_server_winsock.h @@ -5,7 +5,7 @@ /* GODOT ENGINE */ /* http://www.godotengine.org */ /*************************************************************************/ -/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur. */ /* */ /* Permission is hereby granted, free of charge, to any person obtaining */ /* a copy of this software and associated documentation files (the */ @@ -26,30 +26,30 @@ /* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /*************************************************************************/ -#ifndef TCP_SERVER_WINSOCK_H
-#define TCP_SERVER_WINSOCK_H
-
-#include "core/io/tcp_server.h"
-
-class TCPServerWinsock : public TCP_Server {
-
- int listen_sockfd;
-
- static TCP_Server* _create();
-
-public:
-
- virtual Error listen(uint16_t p_port,const List<String> *p_accepted_hosts=NULL);
- virtual bool is_connection_available() const;
- virtual Ref<StreamPeerTCP> take_connection();
-
- virtual void stop(); //stop listening
-
- static void make_default();
- static void cleanup();
-
- TCPServerWinsock();
- ~TCPServerWinsock();
-};
-
-#endif
+#ifndef TCP_SERVER_WINSOCK_H +#define TCP_SERVER_WINSOCK_H + +#include "core/io/tcp_server.h" + +class TCPServerWinsock : public TCP_Server { + + int listen_sockfd; + + static TCP_Server* _create(); + +public: + + virtual Error listen(uint16_t p_port,const List<String> *p_accepted_hosts=NULL); + virtual bool is_connection_available() const; + virtual Ref<StreamPeerTCP> take_connection(); + + virtual void stop(); //stop listening + + static void make_default(); + static void cleanup(); + + TCPServerWinsock(); + ~TCPServerWinsock(); +}; + +#endif |
