added pid/timeout/kill functionality to stats

This commit is contained in:
wouter spruit 2015-03-02 17:20:33 +01:00 committed by Thulinma
parent f5eb82f435
commit 688f339aab
4 changed files with 67 additions and 12 deletions

View file

@ -10,7 +10,8 @@
#include <semaphore.h>
#endif
#define STAT_EX_SIZE 92
#define STAT_EX_SIZE 94
#define PLAY_EX_SIZE 32
namespace IPC {
@ -36,6 +37,8 @@ namespace IPC {
std::string connector();
void crc(unsigned int sum);
unsigned int crc();
void pid(unsigned short id);
unsigned short pid();
private:
///\brief The payload for the stat exchange
/// - 8 byte - now (timestamp of last statistics)
@ -47,6 +50,7 @@ namespace IPC {
/// - 20 byte - streamName (name of the stream peer is viewing)
/// - 20 byte - connector (name of the connector the peer is using)
/// - 4 byte - CRC32 of user agent (or zero if none)
/// - 2 byte - process PID
char * data;
};