Changeset View
Changeset View
Standalone View
Standalone View
src/net.h
Show All 34 Lines | |||||
#ifndef WIN32 | #ifndef WIN32 | ||||
#include <arpa/inet.h> | #include <arpa/inet.h> | ||||
#endif | #endif | ||||
class BanMan; | class BanMan; | ||||
class Config; | class Config; | ||||
class CNode; | class CNode; | ||||
class CScheduler; | class CScheduler; | ||||
struct bilingual_str; | |||||
/** Default for -whitelistrelay. */ | /** Default for -whitelistrelay. */ | ||||
static const bool DEFAULT_WHITELISTRELAY = true; | static const bool DEFAULT_WHITELISTRELAY = true; | ||||
/** Default for -whitelistforcerelay. */ | /** Default for -whitelistforcerelay. */ | ||||
static const bool DEFAULT_WHITELISTFORCERELAY = false; | static const bool DEFAULT_WHITELISTFORCERELAY = false; | ||||
/** | /** | ||||
* Time between pings automatically sent out for latency probing and keepalive | * Time between pings automatically sent out for latency probing and keepalive | ||||
▲ Show 20 Lines • Show All 307 Lines • ▼ Show 20 Lines | public: | ||||
} | } | ||||
ListenSocket(SOCKET socket_, NetPermissionFlags permissions_) | ListenSocket(SOCKET socket_, NetPermissionFlags permissions_) | ||||
: socket(socket_), m_permissions(permissions_) {} | : socket(socket_), m_permissions(permissions_) {} | ||||
private: | private: | ||||
NetPermissionFlags m_permissions; | NetPermissionFlags m_permissions; | ||||
}; | }; | ||||
bool BindListenPort(const CService &bindAddr, std::string &strError, | bool BindListenPort(const CService &bindAddr, bilingual_str &strError, | ||||
NetPermissionFlags permissions); | NetPermissionFlags permissions); | ||||
bool Bind(const CService &addr, unsigned int flags, | bool Bind(const CService &addr, unsigned int flags, | ||||
NetPermissionFlags permissions); | NetPermissionFlags permissions); | ||||
bool InitBinds(const std::vector<CService> &binds, | bool InitBinds(const std::vector<CService> &binds, | ||||
const std::vector<NetWhitebindPermissions> &whiteBinds); | const std::vector<NetWhitebindPermissions> &whiteBinds); | ||||
void ThreadOpenAddedConnections(); | void ThreadOpenAddedConnections(); | ||||
void AddOneShot(const std::string &strDest); | void AddOneShot(const std::string &strDest); | ||||
void ProcessOneShot(); | void ProcessOneShot(); | ||||
▲ Show 20 Lines • Show All 579 Lines • Show Last 20 Lines |