Update of /cvsroot/boost/boost/libs/asio/example/multicast
In directory
sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv17073/libs/asio/example/multicast
Modified Files:
Jamfile receiver.cpp sender.cpp
Log Message:
Change error handling to match TR2 proposal.
Index: Jamfile
===================================================================
RCS file: /cvsroot/boost/boost/libs/asio/example/multicast/Jamfile,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- Jamfile 25 Jul 2006 11:04:01 -0000 1.2
+++ Jamfile 8 Nov 2006 05:32:13 -0000 1.3
@@ -21,7 +21,8 @@
}
exe receiver
- : receiver.cpp
+ : <lib>@boost/libs/system/build/boost_system
+ receiver.cpp
: <include>$(BOOST_ROOT)
<include>../../../..
<define>BOOST_ALL_NO_LIB=1
@@ -32,7 +33,8 @@
;
exe sender
- : sender.cpp
+ : <lib>@boost/libs/system/build/boost_system
+ sender.cpp
: <include>$(BOOST_ROOT)
<include>../../../..
<define>BOOST_ALL_NO_LIB=1
Index: receiver.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/asio/example/multicast/receiver.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- receiver.cpp 25 Jul 2006 11:04:01 -0000 1.2
+++ receiver.cpp 8 Nov 2006 05:32:13 -0000 1.3
@@ -41,7 +41,8 @@
boost::asio::placeholders::bytes_transferred));
}
- void handle_receive_from(const boost::asio::error& error, size_t bytes_recvd)
+ void handle_receive_from(const boost::system::error_code& error,
+ size_t bytes_recvd)
{
if (!error)
{
Index: sender.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/asio/example/multicast/sender.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- sender.cpp 25 Jul 2006 11:04:01 -0000 1.2
+++ sender.cpp 8 Nov 2006 05:32:13 -0000 1.3
@@ -38,7 +38,7 @@
boost::asio::placeholders::error));
}
- void handle_send_to(const boost::asio::error& error)
+ void handle_send_to(const boost::system::error_code& error)
{
if (!error && message_count_ < max_message_count)
{
@@ -49,7 +49,7 @@
}
}
- void handle_timeout(const boost::asio::error& error)
+ void handle_timeout(const boost::system::error_code& error)
{
if (!error)
{
@@ -90,10 +90,6 @@
sender s(io_service, boost::asio::ip::address::from_string(argv[1]));
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