title: boost::asio::ip::tcp::socket is connected?
body: <p>I want to verify the connection status before performing read/write operations.</p>
  
  <p>Is there a way to make an isConnect() method?</p>
  
  <p>I saw <a href="http://lists.boost.org/boost-users/2007/06/28936.php" rel="nofollow noreferrer">this</a>, but it seems "ugly".</p>
  
  <p>I have tested <a href="http://www.boost.org/doc/libs/1_40_0/doc/html/boost_asio/reference/basic_stream_socket/is_open.html" rel="nofollow noreferrer">is_open()</a> function as well, but it doesn't have the expected behavior.</p>