This commit is contained in:
jdl
2024-12-08 09:45:29 +01:00
parent 55a9bf9dc3
commit 03ff1aac80
60 changed files with 3165 additions and 2 deletions

16
peer/globals.go Normal file
View File

@@ -0,0 +1,16 @@
package peer
const (
DEFAULT_PORT = 515
NONCE_SIZE = 24
KEY_SIZE = 32
SIG_SIZE = 64
MTU = 1408
BUFFER_SIZE = MTU + NONCE_SIZE + SIG_SIZE
STREAM_DATA = 0
STREAM_ROUTING = 1 // Routing queries and responses.
// Basic packet types
PACKET_TYPE_DATA = 0
)