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

Modified Files:
        epoll_reactor.hpp kqueue_reactor.hpp 
        reactive_socket_service.hpp select_reactor.hpp socket_ops.hpp 
        timer_queue.hpp win_iocp_socket_service.hpp 
Log Message:
Remove the error::success constant since with the new error_code stuff
there is no unique value for success.


Index: epoll_reactor.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/asio/detail/epoll_reactor.hpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- epoll_reactor.hpp   14 Nov 2006 10:50:18 -0000      1.5
+++ epoll_reactor.hpp   17 Nov 2006 11:28:18 -0000      1.6
@@ -141,7 +141,7 @@
       return;
 
     if (!read_op_queue_.has_operation(descriptor))
-      if (handler(boost::asio::error::success))
+      if (handler(boost::system::error_code()))
         return;
 
     if (read_op_queue_.enqueue_operation(descriptor, handler))
@@ -174,7 +174,7 @@
       return;
 
     if (!write_op_queue_.has_operation(descriptor))
-      if (handler(boost::asio::error::success))
+      if (handler(boost::system::error_code()))
         return;
 
     if (write_op_queue_.enqueue_operation(descriptor, handler))

Index: kqueue_reactor.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/asio/detail/kqueue_reactor.hpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- kqueue_reactor.hpp  14 Nov 2006 10:50:18 -0000      1.6
+++ kqueue_reactor.hpp  17 Nov 2006 11:28:18 -0000      1.7
@@ -140,7 +140,7 @@
       return;
 
     if (!read_op_queue_.has_operation(descriptor))
-      if (handler(boost::asio::error::success))
+      if (handler(boost::system::error_code()))
         return;
 
     if (read_op_queue_.enqueue_operation(descriptor, handler))
@@ -166,7 +166,7 @@
       return;
 
     if (!write_op_queue_.has_operation(descriptor))
-      if (handler(boost::asio::error::success))
+      if (handler(boost::system::error_code()))
         return;
 
     if (write_op_queue_.enqueue_operation(descriptor, handler))

Index: reactive_socket_service.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/asio/detail/reactive_socket_service.hpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- reactive_socket_service.hpp 8 Nov 2006 05:32:12 -0000       1.6
+++ reactive_socket_service.hpp 17 Nov 2006 11:28:18 -0000      1.7
@@ -228,7 +228,7 @@
     else
     {
       reactor_.cancel_ops(impl.socket_);
-      ec = boost::asio::error::success;
+      ec = boost::system::error_code();
       return ec;
     }
   }
@@ -395,7 +395,7 @@
     // A request to receive 0 bytes on a stream socket is a no-op.
     if (impl.protocol_.type() == SOCK_STREAM && total_buffer_size == 0)
     {
-      ec = boost::asio::error::success;
+      ec = boost::system::error_code();
       return 0;
     }
 
@@ -511,7 +511,7 @@
         if (total_buffer_size == 0)
         {
           io_service().post(bind_handler(handler,
-                boost::asio::error::success, 0));
+                boost::system::error_code(), 0));
           return;
         }
       }
@@ -697,7 +697,7 @@
     // A request to receive 0 bytes on a stream socket is a no-op.
     if (impl.protocol_.type() == SOCK_STREAM && total_buffer_size == 0)
     {
-      ec = boost::asio::error::success;
+      ec = boost::system::error_code();
       return 0;
     }
 
@@ -822,7 +822,7 @@
         if (total_buffer_size == 0)
         {
           io_service().post(bind_handler(handler,
-                boost::asio::error::success, 0));
+                boost::system::error_code(), 0));
           return;
         }
       }
@@ -1476,7 +1476,7 @@
     {
       // The connect operation has finished successfully so we need to post the
       // handler immediately.
-      io_service().post(bind_handler(handler, boost::asio::error::success));
+      io_service().post(bind_handler(handler, boost::system::error_code()));
     }
     else if (ec == boost::asio::error::in_progress
         || ec == boost::asio::error::would_block)

Index: select_reactor.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/asio/detail/select_reactor.hpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- select_reactor.hpp  8 Nov 2006 05:32:12 -0000       1.4
+++ select_reactor.hpp  17 Nov 2006 11:28:18 -0000      1.5
@@ -310,11 +310,11 @@
       // Exception operations must be processed first to ensure that any
       // out-of-band data is read before normal data.
       except_op_queue_.dispatch_descriptors(except_fds,
-          boost::asio::error::success);
+          boost::system::error_code());
       read_op_queue_.dispatch_descriptors(read_fds,
-          boost::asio::error::success);
+          boost::system::error_code());
       write_op_queue_.dispatch_descriptors(write_fds,
-          boost::asio::error::success);
+          boost::system::error_code());
       except_op_queue_.dispatch_cancellations();
       read_op_queue_.dispatch_cancellations();
       write_op_queue_.dispatch_cancellations();

Index: socket_ops.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/asio/detail/socket_ops.hpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- socket_ops.hpp      16 Nov 2006 11:49:11 -0000      1.6
+++ socket_ops.hpp      17 Nov 2006 11:28:18 -0000      1.7
@@ -369,7 +369,7 @@
     if (milliseconds == 0)
       milliseconds = 1; // Force context switch.
     ::Sleep(milliseconds);
-    ec = boost::asio::error::success;
+    ec = boost::system::error_code();
     return 0;
   }
 
@@ -578,7 +578,7 @@
   switch (error)
   {
   case 0:
-    return boost::asio::error::success;
+    return boost::system::error_code();
   case HOST_NOT_FOUND:
     return boost::asio::error::host_not_found;
   case TRY_AGAIN:
@@ -1389,7 +1389,7 @@
   switch (error)
   {
   case 0:
-    return boost::asio::error::success;
+    return boost::system::error_code();
   case EAI_AGAIN:
     return boost::asio::error::host_not_found_try_again;
   case EAI_BADFLAGS:

Index: timer_queue.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/asio/detail/timer_queue.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- timer_queue.hpp     8 Nov 2006 05:32:12 -0000       1.2
+++ timer_queue.hpp     17 Nov 2006 11:28:18 -0000      1.3
@@ -112,7 +112,7 @@
     {
       timer_base* t = heap_[0];
       remove_timer(t);
-      t->invoke(boost::asio::error::success);
+      t->invoke(boost::system::error_code());
     }
   }
 

Index: win_iocp_socket_service.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/asio/detail/win_iocp_socket_service.hpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- win_iocp_socket_service.hpp 8 Nov 2006 05:32:12 -0000       1.4
+++ win_iocp_socket_service.hpp 17 Nov 2006 11:28:18 -0000      1.5
@@ -332,7 +332,7 @@
     else if (impl.safe_cancellation_thread_id_ == 0)
     {
       // No operations have been started, so there's nothing to cancel.
-      ec = boost::asio::error::success;
+      ec = boost::system::error_code();
     }
     else if (impl.safe_cancellation_thread_id_ == ::GetCurrentThreadId())
     {
@@ -347,7 +347,7 @@
       }
       else
       {
-        ec = boost::asio::error::success;
+        ec = boost::system::error_code();
       }
     }
     else
@@ -488,7 +488,7 @@
         return endpoint_type();
       }
 
-      ec = boost::asio::error::success;
+      ec = boost::system::error_code();
       return impl.socket_.remote_endpoint();
     }
     else
@@ -533,7 +533,7 @@
     // A request to receive 0 bytes on a stream socket is a no-op.
     if (impl.protocol_.type() == SOCK_STREAM && total_buffer_size == 0)
     {
-      ec = boost::asio::error::success;
+      ec = boost::system::error_code();
       return 0;
     }
 
@@ -671,7 +671,7 @@
     if (impl.protocol_.type() == SOCK_STREAM && total_buffer_size == 0)
     {
       ptr.reset();
-      boost::system::error_code error(boost::asio::error::success);
+      boost::system::error_code error;
       iocp_service_.post(bind_handler(handler, error, 0));
       return;
     }
@@ -870,7 +870,7 @@
     // A request to receive 0 bytes on a stream socket is a no-op.
     if (impl.protocol_.type() == SOCK_STREAM && total_buffer_size == 0)
     {
-      ec = boost::asio::error::success;
+      ec = boost::system::error_code();
       return 0;
     }
 
@@ -1019,7 +1019,7 @@
     if (impl.protocol_.type() == SOCK_STREAM && total_buffer_size == 0)
     {
       ptr.reset();
-      boost::system::error_code error(boost::asio::error::success);
+      boost::system::error_code error;
       iocp_service_.post(bind_handler(handler, error, 0));
       return;
     }


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to