Update of /cvsroot/boost/boost/boost/asio
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27767

Modified Files:
        basic_socket_acceptor.hpp socket_acceptor_service.hpp 
Log Message:
Add is_open() function to acceptor.


Index: basic_socket_acceptor.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/asio/basic_socket_acceptor.hpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- basic_socket_acceptor.hpp   9 Jan 2007 13:54:51 -0000       1.7
+++ basic_socket_acceptor.hpp   9 Feb 2007 06:41:29 -0000       1.8
@@ -252,6 +252,12 @@
         protocol, native_acceptor, ec);
   }
 
+  /// Determine whether the acceptor is open.
+  bool is_open() const
+  {
+    return this->service.is_open(this->implementation);
+  }
+
   /// Bind the acceptor to the given local endpoint.
   /**
    * This function binds the socket acceptor to the specified endpoint on the

Index: socket_acceptor_service.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/asio/socket_acceptor_service.hpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- socket_acceptor_service.hpp 9 Jan 2007 13:54:51 -0000       1.7
+++ socket_acceptor_service.hpp 9 Feb 2007 06:41:29 -0000       1.8
@@ -121,6 +121,12 @@
     return service_impl_.assign(impl, protocol, native_acceptor, ec);
   }
 
+  /// Determine whether the acceptor is open.
+  bool is_open(const implementation_type& impl) const
+  {
+    return service_impl_.is_open(impl);
+  }
+
   /// Cancel all asynchronous operations associated with the acceptor.
   boost::system::error_code cancel(implementation_type& impl,
       boost::system::error_code& ec)


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to