summaryrefslogtreecommitdiff
path: root/core/network.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/network.h')
-rw-r--r--core/network.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/network.h b/core/network.h
index 87f45978..088bbb3b 100644
--- a/core/network.h
+++ b/core/network.h
@@ -68,6 +68,16 @@ extern "C" {
68 68
69#define MAX_UDP_PACKET_SIZE 65507 69#define MAX_UDP_PACKET_SIZE 65507
70 70
71#define NET_PACKET_PING_REQUEST 0 /* Ping request packet ID */
72#define NET_PACKET_PING_RESPONSE 1 /* Ping response packet ID */
73#define NET_PACKET_GET_NODES 2 /* Get nodes request packet ID */
74#define NET_PACKET_SEND_NODES 3 /* Send nodes response packet ID */
75#define NET_PACKET_HANDSHAKE 16 /* Handshake packet ID */
76#define NET_PACKET_SYNC 17 /* SYNC packet ID */
77#define NET_PACKET_DATA 18 /* Data packet ID */
78#define NET_PACKET_CRYPTO 32 /* Encrypted data packet ID */
79#define NET_PACKET_LAN_DISCOVERY 33 /* LAN discovery packet ID */
80
71 81
72/* Current time, unix format */ 82/* Current time, unix format */
73#define unix_time() ((uint64_t)time(NULL)) 83#define unix_time() ((uint64_t)time(NULL))