NymphRPC Remote Procedure Call Library
nymph_server.h
1/*
2 nymph_server.h - header file for the NymphRPC Server class.
3
4 Revision 0
5
6 Notes:
7 - This class declares the server class to be used by Nymph servers.
8
9 History:
10 2017/06/24, Maya Posch : Initial version.
11
12 (c) Nyanko.ws
13*/
14
15
16#pragma once
17#ifndef NYMPH_SERVER_H
18#define NYMPH_SERVER_H
19
20#include <string>
21#include <atomic>
22
23#include <Poco/Net/TCPServer.h>
24
25
27 static std::string loggerName;
28 static Poco::Net::ServerSocket ss;
29 static Poco::Net::TCPServer* server;
30
31public:
32 static std::atomic<bool> running;
33
34 static bool start(int port = 4004);
35 static bool stop();
36};
37
38#endif
Definition: nymph_server.h:26