summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/UdpConnector.h
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2012-07-13 00:18:06 +0200
committerJose <jose@zeroc.com>2012-07-13 00:18:06 +0200
commit70802b63320582f0afa8229659ea9fe4a21d02ec (patch)
treeeb455947cc774cc558f96b8d7c78373d2a6f1c2b /cpp/src/Ice/UdpConnector.h
parentICE-4839 - Glacier2 sessionHelper IceSSL plug-in (diff)
downloadice-70802b63320582f0afa8229659ea9fe4a21d02ec.tar.bz2
ice-70802b63320582f0afa8229659ea9fe4a21d02ec.tar.xz
ice-70802b63320582f0afa8229659ea9fe4a21d02ec.zip
WinRT support
Diffstat (limited to 'cpp/src/Ice/UdpConnector.h')
-rw-r--r--cpp/src/Ice/UdpConnector.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/cpp/src/Ice/UdpConnector.h b/cpp/src/Ice/UdpConnector.h
index cb134616ca0..0055a75638c 100644
--- a/cpp/src/Ice/UdpConnector.h
+++ b/cpp/src/Ice/UdpConnector.h
@@ -14,12 +14,7 @@
#include <Ice/InstanceF.h>
#include <Ice/Connector.h>
#include <Ice/Protocol.h>
-
-#ifdef _WIN32
-# include <winsock2.h>
-#else
-# include <sys/socket.h> // For struct sockaddr_storage
-#endif
+#include <Ice/Network.h>
namespace IceInternal
{
@@ -39,13 +34,13 @@ public:
private:
- UdpConnector(const InstancePtr&, const struct sockaddr_storage&, const std::string&, int, Ice::Byte, Ice::Byte,
- Ice::Byte, Ice::Byte, const std::string&);
+ UdpConnector(const InstancePtr&, const Address&, const std::string&, int, Ice::Byte, Ice::Byte, Ice::Byte,
+ Ice::Byte, const std::string&);
virtual ~UdpConnector();
friend class UdpEndpointI;
const InstancePtr _instance;
- struct sockaddr_storage _addr;
+ const Address _addr;
const std::string _mcastInterface;
const int _mcastTtl;
const Ice::Byte _protocolMajor;
@@ -56,5 +51,4 @@ private:
};
}
-
#endif