Update of /cvsroot/boost/boost/libs/asio/example/allocation
In directory
sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv17073/libs/asio/example/allocation
Modified Files:
Jamfile server.cpp
Log Message:
Change error handling to match TR2 proposal.
Index: Jamfile
===================================================================
RCS file: /cvsroot/boost/boost/libs/asio/example/allocation/Jamfile,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- Jamfile 25 Jul 2006 11:03:59 -0000 1.2
+++ Jamfile 8 Nov 2006 05:32:13 -0000 1.3
@@ -21,7 +21,8 @@
}
exe server
- : server.cpp
+ : <lib>@boost/libs/system/build/boost_system
+ server.cpp
: <include>$(BOOST_ROOT)
<include>../../../..
<define>BOOST_ALL_NO_LIB=1
Index: server.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/asio/example/allocation/server.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- server.cpp 25 Jul 2006 11:03:59 -0000 1.2
+++ server.cpp 8 Nov 2006 05:32:13 -0000 1.3
@@ -140,7 +140,8 @@
boost::asio::placeholders::bytes_transferred)));
}
- void handle_read(const boost::asio::error& error, size_t bytes_transferred)
+ void handle_read(const boost::system::error_code& error,
+ size_t bytes_transferred)
{
if (!error)
{
@@ -153,7 +154,7 @@
}
}
- void handle_write(const boost::asio::error& error)
+ void handle_write(const boost::system::error_code& error)
{
if (!error)
{
@@ -192,7 +193,8 @@
boost::asio::placeholders::error));
}
- void handle_accept(session_ptr new_session, const boost::asio::error& error)
+ void handle_accept(session_ptr new_session,
+ const boost::system::error_code& error)
{
if (!error)
{
@@ -226,10 +228,6 @@
io_service.run();
}
- catch (boost::asio::error& e)
- {
- std::cerr << e << "\n";
- }
catch (std::exception& e)
{
std::cerr << "Exception: " << e.what() << "\n";
-------------------------------------------------------------------------
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