|
|
@ -38,6 +38,7 @@ CNode* FindNode(const CNetAddr& ip); |
|
|
|
CNode* FindNode(const CService& ip); |
|
|
|
CNode* FindNode(const CService& ip); |
|
|
|
CNode* ConnectNode(CAddress addrConnect, const char *strDest = NULL, int64 nTimeout=0); |
|
|
|
CNode* ConnectNode(CAddress addrConnect, const char *strDest = NULL, int64 nTimeout=0); |
|
|
|
void MapPort(bool fMapPort); |
|
|
|
void MapPort(bool fMapPort); |
|
|
|
|
|
|
|
unsigned short GetListenPort(); |
|
|
|
bool BindListenPort(const CService &bindAddr, std::string& strError=REF(std::string())); |
|
|
|
bool BindListenPort(const CService &bindAddr, std::string& strError=REF(std::string())); |
|
|
|
void StartNode(void* parg); |
|
|
|
void StartNode(void* parg); |
|
|
|
bool StopNode(); |
|
|
|
bool StopNode(); |
|
|
@ -58,7 +59,7 @@ enum |
|
|
|
void SetLimited(enum Network net, bool fLimited = true); |
|
|
|
void SetLimited(enum Network net, bool fLimited = true); |
|
|
|
bool IsLimited(const CNetAddr& addr); |
|
|
|
bool IsLimited(const CNetAddr& addr); |
|
|
|
bool AddLocal(const CService& addr, int nScore = LOCAL_NONE); |
|
|
|
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 SeenLocal(const CService& addr); |
|
|
|
bool IsLocal(const CService& addr); |
|
|
|
bool IsLocal(const CService& addr); |
|
|
|
bool GetLocal(CService &addr, const CNetAddr *paddrPeer = NULL); |
|
|
|
bool GetLocal(CService &addr, const CNetAddr *paddrPeer = NULL); |
|
|
|