Added SSL/TLS support to stratum communication
This commit is contained in:
parent
c5fa48215b
commit
6b13f2ad88
8 changed files with 139 additions and 270 deletions
|
@ -94,7 +94,7 @@ void NetworkState::add(const SubmitResult &result, const char *error)
|
|||
}
|
||||
|
||||
|
||||
void NetworkState::setPool(const char *host, int port, const char *ip)
|
||||
void NetworkState::setPool(const char *host, int port)
|
||||
{
|
||||
snprintf(pool, sizeof(pool) - 1, "%s:%d", host, port);
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ public:
|
|||
uint32_t avgTime() const;
|
||||
uint32_t latency() const;
|
||||
void add(const SubmitResult &result, const char *error);
|
||||
void setPool(const char *host, int port, const char *ip);
|
||||
void setPool(const char *host, int port);
|
||||
void stop();
|
||||
|
||||
char pool[256];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue