Fix #626: RecvLine wrong error message

Also moved RecvLine to net.cpp.
This commit is contained in:
Pieter Wuille
2012-02-19 19:05:41 +01:00
parent e0b8d459b1
commit a3342d096f
4 changed files with 52 additions and 52 deletions

View File

@@ -29,6 +29,7 @@ inline unsigned int ReceiveBufferSize() { return 1000*GetArg("-maxreceivebuffer"
inline unsigned int SendBufferSize() { return 1000*GetArg("-maxsendbuffer", 10*1000); }
static const unsigned int PUBLISH_HOPS = 5;
bool RecvLine(SOCKET hSocket, std::string& strLine);
bool GetMyExternalIP(CNetAddr& ipRet);
bool AddAddress(CAddress addr, int64 nTimePenalty=0, CAddrDB *pAddrDB=NULL);
void AddressCurrentlyConnected(const CService& addr);