summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2010-01-13 00:45:11 +0000
committerChristian Pointner <equinox@anytun.org>2010-01-13 00:45:11 +0000
commitad86860b9cfa910d43019b013fa5e43b4c892d03 (patch)
tree3e4e1a62ea05566d77c4771e73bc288f8ccfa931
parentadded mutli socket recv to packet source (diff)
disables unsupported socket option on windows
-rw-r--r--src/packetSource.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/packetSource.cpp b/src/packetSource.cpp
index 9d0b706..17233a9 100644
--- a/src/packetSource.cpp
+++ b/src/packetSource.cpp
@@ -75,10 +75,12 @@ void UDPPacketSource::onResolve(PacketSourceResolverIt& it)
sock.len_ = 0;
sock.sock_ = new proto::socket(io_service_);
sock.sock_->open(e.protocol());
+#ifndef _MSC_VER
if(e.protocol() == proto::v6()) {
boost::asio::ip::v6_only option(true);
sock.sock_->set_option(option);
}
+#endif
sock.sock_->bind(e);
sockets_.push_back(sock);