mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-18 09:35:49 +00:00
30 lines
408 B
C++
30 lines
408 B
C++
#ifndef __KNOWNNODELIST__
|
|
#define __KNOWNNODELIST__
|
|
|
|
#include "vector"
|
|
|
|
class KnownNode
|
|
{
|
|
public:
|
|
std::string mIP;
|
|
int mPort;
|
|
int mLastSeen;
|
|
int mLastTried;
|
|
|
|
KnownNode(const char* ip,int port,int lastSeen,int lastTried);
|
|
};
|
|
|
|
class KnownNodeList
|
|
{
|
|
unsigned int mTriedIndex;
|
|
std::vector <KnownNode> mNodes;
|
|
public:
|
|
KnownNodeList();
|
|
|
|
void load();
|
|
void addNode();
|
|
KnownNode* getNextNode();
|
|
|
|
};
|
|
|
|
#endif |