blob: a3414f638f1b7b9462fc05c7f46ef5c26208ad29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#ifndef SERVER_H
#define SERVER_H
#include <winsock2.h>
#include <ws2tcpip.h>
#define RPC_PORT 26503
#define MAX_CONNECTIONS 5
class Plugin;
struct thread_info
{
HANDLE thread_handle;
SOCKET socket_fd;
};
class jsonrpc_server {
private:
Plugin* parent;
struct thread_info threads[MAX_CONNECTIONS] = {0};
public:
jsonrpc_server(Plugin* plugin);
~jsonrpc_server();
};
#endif
|