Remove some code temporary code using the multicast socket options that was

accidentally left in.
This commit is contained in:
chris_kohlhoff 2005-04-05 06:59:13 +00:00
parent bc9222adf1
commit 5fcfc25f5c
2 changed files with 0 additions and 4 deletions

View File

@ -19,7 +19,6 @@ public:
// Join the multicast group. // Join the multicast group.
socket_.set_option(asio::ipv4::multicast::add_membership(multicast_addr)); 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_, socket_.async_recvfrom(data_, max_length, sender_endpoint_,
boost::bind(&receiver::handle_recvfrom, this, asio::arg::error, boost::bind(&receiver::handle_recvfrom, this, asio::arg::error,

View File

@ -16,9 +16,6 @@ public:
timer_(d), timer_(d),
message_count_(0) 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; std::ostringstream os;
os << "Message " << message_count_++; os << "Message " << message_count_++;
message_ = os.str(); message_ = os.str();