From 479790a841f3c55515eefcadce0c8e6de23d48f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Sat, 14 Jan 2017 16:23:01 +0100 Subject: [PATCH] StreamPeerWinsock: Fix changed declarations Bug introduced in dcb95ec1473eff3f455909cd81c3cd50b1e1159b. --- drivers/unix/stream_peer_tcp_posix.cpp | 4 ++-- platform/windows/stream_peer_winsock.cpp | 4 ++-- platform/windows/stream_peer_winsock.h | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/unix/stream_peer_tcp_posix.cpp b/drivers/unix/stream_peer_tcp_posix.cpp index b494de67443..82f3115f4b1 100644 --- a/drivers/unix/stream_peer_tcp_posix.cpp +++ b/drivers/unix/stream_peer_tcp_posix.cpp @@ -218,7 +218,7 @@ Error StreamPeerTCPPosix::write(const uint8_t* p_data,int p_bytes, int &r_sent, perror("shit?"); disconnect_from_host(); - ERR_PRINT("Server disconnect_from_hosted!\n"); + ERR_PRINT("Server disconnected!\n"); return FAILED; }; @@ -275,7 +275,7 @@ Error StreamPeerTCPPosix::read(uint8_t* p_buffer, int p_bytes,int &r_received, b perror("shit?"); disconnect_from_host(); - ERR_PRINT("Server disconnect_from_hosted!\n"); + ERR_PRINT("Server disconnected!\n"); return FAILED; }; diff --git a/platform/windows/stream_peer_winsock.cpp b/platform/windows/stream_peer_winsock.cpp index 13bb75cdd7d..6ceae0fcc7e 100644 --- a/platform/windows/stream_peer_winsock.cpp +++ b/platform/windows/stream_peer_winsock.cpp @@ -150,7 +150,7 @@ Error StreamPeerWinsock::write(const uint8_t* p_data,int p_bytes, int &r_sent, b perror("shit?"); disconnect_from_host(); - ERR_PRINT("Server disconnect_from_hosted!\n"); + ERR_PRINT("Server disconnected!\n"); return FAILED; }; @@ -207,7 +207,7 @@ Error StreamPeerWinsock::read(uint8_t* p_buffer, int p_bytes,int &r_received, bo perror("shit?"); disconnect_from_host(); - ERR_PRINT("Server disconnect_from_hosted!\n"); + ERR_PRINT("Server disconnected!\n"); return FAILED; }; diff --git a/platform/windows/stream_peer_winsock.h b/platform/windows/stream_peer_winsock.h index 3b63315a42a..eff96930dde 100644 --- a/platform/windows/stream_peer_winsock.h +++ b/platform/windows/stream_peer_winsock.h @@ -73,9 +73,9 @@ public: virtual IP_Address get_connected_host() const; virtual uint16_t get_connected_port() const; - virtual bool is_connected() const; + virtual bool is_connected_to_host() const; virtual Status get_status() const; - virtual void disconnect(); + virtual void disconnect_from_host(); static void make_default(); static void cleanup();