From ffa46b0f596b486bd2bbfcc367b42f8e32bccc29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E7=9F=B3=E5=A4=B4X2?= Date: Wed, 1 Mar 2017 08:29:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E9=87=8D=E6=96=B0=E5=BB=BA?= =?UTF-8?q?=E7=AB=8B=E8=BF=9E=E6=8E=A5=E6=97=B6=EF=BC=8C=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E9=87=8D=E6=96=B0=E6=89=93=E5=BC=80=E5=85=B3=E9=97=AD=E6=8E=A7?= =?UTF-8?q?=E5=88=B6=E5=99=A8=EF=BC=8C=E5=90=A6=E5=88=99=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E5=BB=BA=E7=AB=8B=E6=96=B0=E8=BF=9E=E6=8E=A5=E6=8E=A5=E6=94=B6?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=9A=84=E5=A7=94=E6=89=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TokenNet/TokenClient.cpp | 2 ++ vs/SmartOS.vcxproj | 5 +++++ vs/SmartOS.vcxproj.filters | 15 +++++++++++++++ 3 files changed, 22 insertions(+) diff --git a/TokenNet/TokenClient.cpp b/TokenNet/TokenClient.cpp index 914c64d3..3c25caaa 100644 --- a/TokenNet/TokenClient.cpp +++ b/TokenNet/TokenClient.cpp @@ -598,6 +598,8 @@ bool TokenClient::ChangeIPEndPoint(const NetUri& uri) delete socket; socket = Socket::CreateRemote(uri); ctrl->_Socket = socket; + ctrl->Close(); + ctrl->Open(); /*ctrl->Port->Close(); socket->Remote.Port = uri.Port; diff --git a/vs/SmartOS.vcxproj b/vs/SmartOS.vcxproj index 23d00ed6..e4edf2d3 100644 --- a/vs/SmartOS.vcxproj +++ b/vs/SmartOS.vcxproj @@ -79,6 +79,11 @@ + + + + + diff --git a/vs/SmartOS.vcxproj.filters b/vs/SmartOS.vcxproj.filters index aab04c87..9a2fff15 100644 --- a/vs/SmartOS.vcxproj.filters +++ b/vs/SmartOS.vcxproj.filters @@ -545,5 +545,20 @@ App + + Drivers\Esp8266 + + + Drivers\Esp8266 + + + Drivers\Esp8266 + + + Drivers\Esp8266 + + + Drivers\Esp8266 + \ No newline at end of file