mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-23 14:32:27 +08:00
refactor
This commit is contained in:
@@ -3,14 +3,15 @@ package net
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/binary"
|
||||
"hk4e/common/config"
|
||||
"hk4e/common/utils/random"
|
||||
"hk4e/gate/kcp"
|
||||
"hk4e/logger"
|
||||
"os"
|
||||
"strconv"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"hk4e/common/config"
|
||||
"hk4e/gate/kcp"
|
||||
"hk4e/pkg/logger"
|
||||
"hk4e/pkg/random"
|
||||
)
|
||||
|
||||
type KcpXorKey struct {
|
||||
|
||||
@@ -3,8 +3,9 @@ package net
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/binary"
|
||||
"hk4e/common/utils/endec"
|
||||
"hk4e/logger"
|
||||
|
||||
"hk4e/pkg/endec"
|
||||
"hk4e/pkg/logger"
|
||||
)
|
||||
|
||||
/*
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net
|
||||
|
||||
import "hk4e/logger"
|
||||
import "hk4e/pkg/logger"
|
||||
|
||||
const (
|
||||
KcpXorKeyChange = iota
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
package net
|
||||
|
||||
import (
|
||||
pb "google.golang.org/protobuf/proto"
|
||||
"hk4e/logger"
|
||||
"hk4e/pkg/logger"
|
||||
"hk4e/protocol/cmd"
|
||||
"hk4e/protocol/proto"
|
||||
|
||||
pb "google.golang.org/protobuf/proto"
|
||||
)
|
||||
|
||||
type ProtoEnDecode struct {
|
||||
|
||||
Reference in New Issue
Block a user