summaryrefslogtreecommitdiff
path: root/src/SocketCore.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-12-06 08:25:41 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-12-06 08:25:41 +0000
commit45f681b9dc6cee8c3ca5ffc4c609ea144896a55c (patch)
treee1d723b83530340ca9c08562fee575262b61c37d /src/SocketCore.h
parent766ad3baf211c0be50ead692d9a103d29615547e (diff)
2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Store all addresses found by getifaddrs() and getaddrinfo(). In bind, try all addresses until success * src/SocketCore.cc * src/SocketCore.h
Diffstat (limited to 'src/SocketCore.h')
-rw-r--r--src/SocketCore.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/SocketCore.h b/src/SocketCore.h
index 9d06fbeb..866a45e0 100644
--- a/src/SocketCore.h
+++ b/src/SocketCore.h
@@ -44,6 +44,7 @@
#include <string>
#include <cstdlib>
#include <utility>
+#include <vector>
#ifdef HAVE_LIBSSL
// for SSL
@@ -92,9 +93,7 @@ private:
static int _protocolFamily;
- static SharedHandle<struct sockaddr_storage> _bindAddr;
-
- static socklen_t _bindAddrLen;
+ static std::vector<std::pair<struct sockaddr_storage, socklen_t> > _bindAddrs;
bool blocking;
int secure;