aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2012-05-11 15:28:59 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2012-05-11 15:29:20 +0200
commit8f10a2889089af1b2ac64802360494b54c8c7ff1 (patch)
tree06df6b9e6114b170fca7aaa7e205c26207a0ab2f /src/net.h
parent7fa4443f77a659031e277337770b506fcf954d69 (diff)
Separate listening sockets, -bind=<addr>
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net.h b/src/net.h
index 398b89dcfc..d62f512716 100644
--- a/src/net.h
+++ b/src/net.h
@@ -38,7 +38,7 @@ CNode* FindNode(const CNetAddr& ip);
CNode* FindNode(const CService& ip);
CNode* ConnectNode(CAddress addrConnect, const char *strDest = NULL, int64 nTimeout=0);
void MapPort(bool fMapPort);
-bool BindListenPort(std::string& strError=REF(std::string()));
+bool BindListenPort(const CService &bindAddr, std::string& strError=REF(std::string()));
void StartNode(void* parg);
bool StopNode();
@@ -46,6 +46,7 @@ enum
{
LOCAL_NONE, // unknown
LOCAL_IF, // address a local interface listens on
+ LOCAL_BIND, // address explicit bound to
LOCAL_UPNP, // address reported by UPnP
LOCAL_IRC, // address reported by IRC (deprecated)
LOCAL_HTTP, // address reported by whatismyip.com and similars