Switch over to more modern unix sharedmemory API (requested by fatbob)
[umurmur.git] / src / sharedmemory_struct.h
index 88eb0c5e54d633e8c2dd785655398f4215761807..61d6488c96846d970230bbcd180740753303c008 100644 (file)
@@ -1,11 +1,12 @@
 typedef struct\r
 {\r
+\r
   char username[121];\r
   char ipaddress[46];\r
   int tcp_port, udp_port;\r
   char channel[121];\r
   bool_t bUDP, authenticated, deaf, mute, self_deaf, self_mute, recording, bOpus;\r
-  etimer_t lastActivity, connectTime, idleTime;\r
+  uint32_t online_secs, idle_secs;\r
   float UDPPingAvg, UDPPingVar, TCPPingAvg, TCPPingVar;\r
   uint32_t UDPPackets, TCPPackets;\r
 \r
@@ -15,7 +16,8 @@ typedef struct
 {\r
 \r
   int clientcount, server_max_clients;\r
-  unsigned int umurmurd_pid; //Use this to make sure umurmurd is still running so I can allow more than one connection.\r
-  shmclient_t client[];    //MJP BUG: Use max usersetting from conf file\r
+  unsigned int umurmurd_pid;\r
+       uint8_t alive; \r
+  shmclient_t client[];    \r
   \r
-}shm_t;
\ No newline at end of file
+}shm_t;\r