1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-07-01 16:10:24 +08:00

complete en/decode

This commit is contained in:
fumiama
2021-12-27 23:24:41 +08:00
parent 7cb3ef6488
commit bba9662a5b
6 changed files with 41 additions and 14 deletions

View File

@@ -5,8 +5,9 @@ import (
"net"
"sync"
"github.com/fumiama/WireGold/gold/head"
"github.com/sirupsen/logrus"
"github.com/fumiama/WireGold/gold/head"
)
// Link 是本机到 peer 的连接抽象
@@ -33,7 +34,7 @@ type Link struct {
// 连接的状态,详见下方 const
status int
// 连接所用对称加密密钥
key *[]byte
key *[32]byte
}
const (