diff options
author | irungentoo <irungentoo@gmail.com> | 2013-08-08 10:59:22 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-08-08 10:59:22 -0400 |
commit | a3a0fb57cb8804d619e04cfc22f8154db067fa25 (patch) | |
tree | 1901758073d2b96f8fb007a2c53f9269eed4a188 /core/network.h | |
parent | e8ee3c0cd31f70593b65cec7fe411e07aceb3725 (diff) |
Moved a define and fixed another.
Diffstat (limited to 'core/network.h')
-rw-r--r-- | core/network.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/network.h b/core/network.h index d246a9d1..d3c39333 100644 --- a/core/network.h +++ b/core/network.h | |||
@@ -66,6 +66,11 @@ extern "C" { | |||
66 | 66 | ||
67 | #define MAX_UDP_PACKET_SIZE 65507 | 67 | #define MAX_UDP_PACKET_SIZE 65507 |
68 | 68 | ||
69 | |||
70 | /* Current time, unix format */ | ||
71 | #define unix_time() ((uint64_t)time(NULL)) | ||
72 | |||
73 | |||
69 | typedef union { | 74 | typedef union { |
70 | uint8_t c[4]; | 75 | uint8_t c[4]; |
71 | uint16_t s[2]; | 76 | uint16_t s[2]; |