From 5fcfc25f5c4fb5187e5115bdcdc13ed2e19fd4e3 Mon Sep 17 00:00:00 2001 From: chris_kohlhoff Date: Tue, 5 Apr 2005 06:59:13 +0000 Subject: [PATCH] Remove some code temporary code using the multicast socket options that was accidentally left in. --- asio/src/examples/multicast/receiver.cpp | 1 - asio/src/examples/multicast/sender.cpp | 3 --- 2 files changed, 4 deletions(-) diff --git a/asio/src/examples/multicast/receiver.cpp b/asio/src/examples/multicast/receiver.cpp index 32dc108e..0b23a007 100644 --- a/asio/src/examples/multicast/receiver.cpp +++ b/asio/src/examples/multicast/receiver.cpp @@ -19,7 +19,6 @@ public: // Join the multicast group. socket_.set_option(asio::ipv4::multicast::add_membership(multicast_addr)); - socket_.set_option(asio::ipv4::multicast::drop_membership(multicast_addr)); socket_.async_recvfrom(data_, max_length, sender_endpoint_, boost::bind(&receiver::handle_recvfrom, this, asio::arg::error, diff --git a/asio/src/examples/multicast/sender.cpp b/asio/src/examples/multicast/sender.cpp index 953c43b3..f0e36113 100644 --- a/asio/src/examples/multicast/sender.cpp +++ b/asio/src/examples/multicast/sender.cpp @@ -16,9 +16,6 @@ public: timer_(d), message_count_(0) { - // Set the time-to-live for outgoing multicast packets. - socket_.set_option(asio::ipv4::multicast::time_to_live(2)); - std::ostringstream os; os << "Message " << message_count_++; message_ = os.str();