Fixed stats issue for quick switching connections.

This commit is contained in:
Thulinma 2016-10-11 16:36:22 +02:00
parent 497a89588d
commit 8f6d75e51e
3 changed files with 12 additions and 5 deletions

View file

@ -181,7 +181,7 @@ namespace IPC {
sharedServer(std::string name, int len, bool withCounter = false);
void init(std::string name, int len, bool withCounter = false);
~sharedServer();
void parseEach(void (*callback)(char * data, size_t len, unsigned int id));
void parseEach(void (*activeCallback)(char * data, size_t len, unsigned int id), void (*disconCallback)(char * data, size_t len, unsigned int id) = 0);
char * getIndex(unsigned int id);
operator bool() const;
///\brief The amount of connected clients