Added TLS support for API and many other TLS related changes.
This commit is contained in:
parent
92a258f142
commit
5b610e4dfe
38 changed files with 1601 additions and 178 deletions
|
@ -5,8 +5,8 @@
|
|||
* Copyright 2014-2016 Wolf9466 <https://github.com/OhGodAPet>
|
||||
* Copyright 2016 Jay D Dee <jayddee246@gmail.com>
|
||||
* Copyright 2017-2018 XMR-Stak <https://github.com/fireice-uk>, <https://github.com/psychocrypt>
|
||||
* Copyright 2018-2019 SChernykh <https://github.com/SChernykh>
|
||||
* Copyright 2016-2019 XMRig <https://github.com/xmrig>, <support@xmrig.com>
|
||||
* Copyright 2018-2020 SChernykh <https://github.com/SChernykh>
|
||||
* Copyright 2016-2020 XMRig <https://github.com/xmrig>, <support@xmrig.com>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -29,6 +29,9 @@
|
|||
#include <uv.h>
|
||||
|
||||
|
||||
#include "base/tools/Object.h"
|
||||
|
||||
|
||||
namespace xmrig {
|
||||
|
||||
|
||||
|
@ -39,6 +42,8 @@ class String;
|
|||
class TcpServer
|
||||
{
|
||||
public:
|
||||
XMRIG_DISABLE_COPY_MOVE_DEFAULT(TcpServer)
|
||||
|
||||
TcpServer(const String &host, uint16_t port, ITcpServerListener *listener);
|
||||
~TcpServer();
|
||||
|
||||
|
@ -50,9 +55,9 @@ private:
|
|||
static void onConnection(uv_stream_t *stream, int status);
|
||||
|
||||
const String &m_host;
|
||||
int m_version;
|
||||
int m_version = 0;
|
||||
ITcpServerListener *m_listener;
|
||||
sockaddr_storage m_addr;
|
||||
sockaddr_storage m_addr{};
|
||||
uint16_t m_port;
|
||||
uv_tcp_t *m_tcp;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue