summaryrefslogtreecommitdiff
path: root/lib/status.h
diff options
context:
space:
mode:
authordeva <deva>2006-08-25 21:20:07 +0000
committerdeva <deva>2006-08-25 21:20:07 +0000
commit8196872e3b240ef93fc17dd3c05a7d97a8015d88 (patch)
treee531edeb1c7178a8e58170c84645ce8eb706624e /lib/status.h
parent347b1d8ed3a4f780f3a5c0d57a04eab05ca517a2 (diff)
Rearranged the network and socket code.origin
Added status messages sent over the network using udp packets.
Diffstat (limited to 'lib/status.h')
-rw-r--r--lib/status.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/lib/status.h b/lib/status.h
index d947123..3988aad 100644
--- a/lib/status.h
+++ b/lib/status.h
@@ -30,14 +30,15 @@
/**
* Internal data class for the server status info.
*/
-class Status {
-public:
- unsigned long long int diskspace;
- unsigned long long int diskspace_max;
- unsigned short load;
- unsigned short load_max;
-};
-
+typedef struct {
+ unsigned char diskspace;
+ unsigned char diskspace_max;
+ unsigned char load;
+ unsigned char load_max;
+} status_t;
+typedef struct {
+ char magic[4];
+} status_request_t;
#endif/*__MIAV_STATUS_H__*/