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 
22 #include <Poco/Net/TCPServer.h>
23 
24 
25 class NymphServer {
26  static std::string loggerName;
27  static Poco::Net::ServerSocket ss;
28  static Poco::Net::TCPServer* server;
29 
30 public:
31  static bool running;
32 
33  static bool start(int port = 4004);
34  static bool stop();
35 };
36 
37 #endif
Definition: nymph_server.h:25