Update of /cvsroot/boost/boost/libs/asio/example/echo
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv15893/example/echo
Modified Files:
blocking_tcp_echo_server.cpp
Log Message:
Ensure that what gets thrown is the system_error exception.
Index: blocking_tcp_echo_server.cpp
===================================================================
RCS file:
/cvsroot/boost/boost/libs/asio/example/echo/blocking_tcp_echo_server.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- blocking_tcp_echo_server.cpp 8 Nov 2006 05:32:13 -0000 1.3
+++ blocking_tcp_echo_server.cpp 9 Nov 2006 11:21:37 -0000 1.4
@@ -34,7 +34,7 @@
if (error == boost::asio::error::eof)
break; // Connection closed cleanly by peer.
else if (error)
- throw error; // Some other error.
+ throw boost::system::system_error(error); // Some other error.
boost::asio::write(*sock, boost::asio::buffer(data, length));
}
-------------------------------------------------------------------------
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