1 #include <arpa/inet.h> 2 #include <stdint.h> 3 #include "types.h" 4 5 typedef struct 6 { 7 char username[121]; 8 char ipaddress[INET6_ADDRSTRLEN]; 9 char channel[121]; 10 char os[121], release[121], os_version[121]; 11 int tcp_port, udp_port; 12 bool_t bUDP, authenticated, deaf, mute, self_deaf, self_mute, recording, bOpus; 13 int availableBandwidth; 14 uint32_t online_secs, idle_secs; 15 uint8_t hash[20]; 16 bool_t isAdmin; 17 bool_t isSuppressed; 18 float UDPPingAvg, UDPPingVar, TCPPingAvg, TCPPingVar; 19 uint32_t UDPPackets, TCPPackets; 20 } shmclient_t; 21 22 typedef struct 23 { 24 int shmtotal_size, shmclient_size; 25 int clientcount, server_max_clients; 26 unsigned int umurmurd_pid; 27 uint8_t alive; 28 shmclient_t client[]; 29 } shm_t; 30