mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 16:14:02 +03:00
Minor cleanups
This commit is contained in:
@@ -8,8 +8,7 @@ const (
|
||||
rpcHandshakeSenderPIDLength = 12
|
||||
rpcHandshakePeerPIDLength = rpcHandshakeSenderPIDLength
|
||||
|
||||
rpcHandshakeRequestLength = rpcHandshakeTagLength + rpcHandshakeFlagsLength +
|
||||
rpcHandshakeSenderPIDLength + rpcHandshakePeerPIDLength
|
||||
rpcHandshakeRequestLength = rpcHandshakeTagLength + rpcHandshakeFlagsLength + rpcHandshakeSenderPIDLength + rpcHandshakePeerPIDLength
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -18,8 +17,6 @@ var (
|
||||
|
||||
rpcHandshakeTag = [rpcHandshakeTagLength]byte{0xf5, 0xee, 0x82, 0x76}
|
||||
rpcHandshakeFlags = [rpcHandshakeFlagsLength]byte{0x00, 0x00, 0x00, 0x00}
|
||||
|
||||
rpcHandshakeBuffer *bytes.Buffer
|
||||
)
|
||||
|
||||
type RPCHandshakeRequest struct {
|
||||
|
||||
@@ -16,8 +16,7 @@ const (
|
||||
rpcNonceTagLength = 4
|
||||
rpcNonceCryptoAESLength = 4
|
||||
|
||||
rpcNonceRequestLength = rpcNonceTagLength + rpcNonceKeySelectorLength +
|
||||
rpcNonceCryptoAESLength + rpcNonceCryptoTSLength + rpcNonceLength
|
||||
rpcNonceRequestLength = rpcNonceTagLength + rpcNonceKeySelectorLength + rpcNonceCryptoAESLength + rpcNonceCryptoTSLength + rpcNonceLength
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
Reference in New Issue
Block a user