1
#ifndef np_connections_server_h__
2
#define np_connections_server_h__
5
#include "named_pipe.h"
7
class clNamedPipeConnectionsServer
10
enum NP_SERVER_ERRORS {
11
NP_SERVER_TIMEOUT = 1,
12
NP_SERVER_UNKNOWN_ERROR
15
clNamedPipeConnectionsServer(const char* pipeName);
16
virtual ~clNamedPipeConnectionsServer();
18
clNamedPipe *waitForNewConnection(int timeout);
19
NP_SERVER_ERRORS getLastError() { return this->_lastError ; }
22
void setLastError(NP_SERVER_ERRORS error) { this->_lastError = error; }
25
PIPE_HANDLE initNewInstance();
26
NP_SERVER_ERRORS _lastError;
28
PIPE_HANDLE _listenHandle;
31
#endif // np_connections_server_h__