diff options
| author | Pieter Wuille <[email protected]> | 2012-05-13 01:26:14 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2012-05-13 01:26:14 +0200 |
| commit | 5a3cb32e5942adbfb5af90808013c1dde3c03fcf (patch) | |
| tree | 91e93cba67ad9a600f18589b2ac25f2b80bc4064 /src/net.h | |
| parent | Keep local service information per address (diff) | |
| download | discoin-5a3cb32e5942adbfb5af90808013c1dde3c03fcf.tar.xz discoin-5a3cb32e5942adbfb5af90808013c1dde3c03fcf.zip | |
Take -port into account when resolving -bind's
Diffstat (limited to 'src/net.h')
| -rw-r--r-- | src/net.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -38,6 +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); +unsigned short GetListenPort(); bool BindListenPort(const CService &bindAddr, std::string& strError=REF(std::string())); void StartNode(void* parg); bool StopNode(); @@ -58,7 +59,7 @@ enum void SetLimited(enum Network net, bool fLimited = true); bool IsLimited(const CNetAddr& addr); bool AddLocal(const CService& addr, int nScore = LOCAL_NONE); -bool AddLocal(const CNetAddr& addr, int nScore = LOCAL_NONE, int port = -1); +bool AddLocal(const CNetAddr& addr, int nScore = LOCAL_NONE); bool SeenLocal(const CService& addr); bool IsLocal(const CService& addr); bool GetLocal(CService &addr, const CNetAddr *paddrPeer = NULL); |