diff options
author | Juan Linietsky <reduzio@gmail.com> | 2014-04-28 21:56:43 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2014-04-28 21:56:43 -0300 |
commit | 87f37bc5a305e6a68ef232be580350588e300fcc (patch) | |
tree | 608af97f58c0dd7f2f6f86d973b072f7888bfca0 /core/io/stream_peer_tcp.cpp | |
parent | 7fadc2f93a18f2b5487fbcd6e90bcde781c53fec (diff) | |
download | redot-engine-87f37bc5a305e6a68ef232be580350588e300fcc.tar.gz |
-Added OpenSSL and HTTPS support
-Built-in version of the library for Windows, Android and iOS (other OSs use system one)
-Small fixes all around
Diffstat (limited to 'core/io/stream_peer_tcp.cpp')
-rw-r--r-- | core/io/stream_peer_tcp.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/io/stream_peer_tcp.cpp b/core/io/stream_peer_tcp.cpp index 13a158ea4d..0e75e22767 100644 --- a/core/io/stream_peer_tcp.cpp +++ b/core/io/stream_peer_tcp.cpp @@ -34,9 +34,16 @@ void StreamPeerTCP::_bind_methods() { ObjectTypeDB::bind_method(_MD("connect","host","ip"),&StreamPeerTCP::connect); ObjectTypeDB::bind_method(_MD("is_connected"),&StreamPeerTCP::is_connected); + ObjectTypeDB::bind_method(_MD("get_status"),&StreamPeerTCP::get_status); ObjectTypeDB::bind_method(_MD("get_connected_host"),&StreamPeerTCP::get_connected_host); ObjectTypeDB::bind_method(_MD("get_connected_port"),&StreamPeerTCP::get_connected_port); ObjectTypeDB::bind_method(_MD("disconnect"),&StreamPeerTCP::disconnect); + + BIND_CONSTANT( STATUS_NONE ); + BIND_CONSTANT( STATUS_CONNECTING ); + BIND_CONSTANT( STATUS_CONNECTED ); + BIND_CONSTANT( STATUS_ERROR ); + } Ref<StreamPeerTCP> StreamPeerTCP::create_ref() { |