From a78fb0c154fe6aac025d5ff29c0a1b3ef4843df9 Mon Sep 17 00:00:00 2001 From: Myun2 Date: Mon, 21 May 2012 19:29:12 +0900 Subject: [PATCH] =?utf8?q?=E3=81=A8=E3=82=8A=E3=81=82=E3=81=88=E3=81=9A?= =?utf8?q?=E3=82=AF=E3=83=AD=E3=83=BC=E3=82=BA=E3=81=86=E3=82=93=E3=81=AC?= =?utf8?q?=E3=82=93=E3=81=AF=E7=9B=B4=E3=81=A3=E3=81=9F=E3=82=88=E3=81=86?= =?utf8?q?=E3=81=AA=E3=80=81=E3=81=A9=E3=81=86=E3=81=AA=E3=82=93=E3=81=A0?= =?utf8?q?=E3=82=88=E3=81=86=E3=81=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- roast/include/roast/io/handle_manage.hpp | 5 +++-- roast/include/roast/windows/socket_impl.hpp | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/roast/include/roast/io/handle_manage.hpp b/roast/include/roast/io/handle_manage.hpp index 6548ccd1..a4401c63 100644 --- a/roast/include/roast/io/handle_manage.hpp +++ b/roast/include/roast/io/handle_manage.hpp @@ -51,20 +51,21 @@ namespace roast handle_manage(handler_type handle) : m_handle(handle) {} virtual ~handle_manage(){ - /* 2012/05/18 myun2 Close by shared_handle. close(); - */ } ///////////////////////////////////////////////// // Close void close(){ + /* 2012/05/18 myun2 Close by shared_handle. if ( m_handle != _Impl::invalid_handle ) { _Impl::close(m_handle); m_handle = _Impl::invalid_handle; } + */ + m_handle = _Impl::invalid_handle; } //////////////////////////////////////////////////// diff --git a/roast/include/roast/windows/socket_impl.hpp b/roast/include/roast/windows/socket_impl.hpp index cdda78d6..049d22a5 100644 --- a/roast/include/roast/windows/socket_impl.hpp +++ b/roast/include/roast/windows/socket_impl.hpp @@ -39,7 +39,7 @@ namespace roast port = 0; af = AF_INET; type = SOCK_STREAM; - protocol = protocol; + protocol = 0; } open_params_type(int af_in, int type_in, int protocol_in){ host = NULL; @@ -60,7 +60,7 @@ namespace roast port = port_in; af = AF_INET; type = SOCK_STREAM; - protocol = protocol; + protocol = 0; } }; struct ioctl_data {}; -- 2.11.0