diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2012-05-11 15:28:59 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2012-05-11 15:29:20 +0200 |
commit | 8f10a2889089af1b2ac64802360494b54c8c7ff1 (patch) | |
tree | 06df6b9e6114b170fca7aaa7e205c26207a0ab2f /src/netbase.h | |
parent | 7fa4443f77a659031e277337770b506fcf954d69 (diff) |
Separate listening sockets, -bind=<addr>
Diffstat (limited to 'src/netbase.h')
-rw-r--r-- | src/netbase.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/netbase.h b/src/netbase.h index bd62c42e32..514a1ae950 100644 --- a/src/netbase.h +++ b/src/netbase.h @@ -105,7 +105,8 @@ class CService : public CNetAddr void Init(); void SetPort(unsigned short portIn); unsigned short GetPort() const; - bool GetSockAddr(struct sockaddr_in* paddr) const; + bool GetSockAddr(struct sockaddr* paddr, socklen_t *addrlen) const; + bool SetSockAddr(const struct sockaddr* paddr); friend bool operator==(const CService& a, const CService& b); friend bool operator!=(const CService& a, const CService& b); friend bool operator<(const CService& a, const CService& b); @@ -117,7 +118,6 @@ class CService : public CNetAddr #ifdef USE_IPV6 CService(const struct in6_addr& ipv6Addr, unsigned short port); - bool GetSockAddr6(struct sockaddr_in6* paddr) const; CService(const struct sockaddr_in6& addr); #endif |