wip
This commit is contained in:
16
peer/globals.go
Normal file
16
peer/globals.go
Normal 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
|
||||
)
|
||||
Reference in New Issue
Block a user