diff options
| author | deva <deva> | 2006-08-25 21:20:07 +0000 | 
|---|---|---|
| committer | deva <deva> | 2006-08-25 21:20:07 +0000 | 
| commit | 8196872e3b240ef93fc17dd3c05a7d97a8015d88 (patch) | |
| tree | e531edeb1c7178a8e58170c84645ce8eb706624e /lib/status.h | |
| parent | 347b1d8ed3a4f780f3a5c0d57a04eab05ca517a2 (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.h | 17 | 
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__*/  | 
