修复Win编译问题

This commit is contained in:
flswld
2023-02-15 18:50:55 +08:00
parent ba063e9d70
commit 2e2159f309
2 changed files with 9 additions and 9 deletions

View File

@@ -56,6 +56,15 @@ func init() {
} }
} }
const (
batchSize = 16
)
type batchConn interface {
WriteBatch(ms []ipv4.Message, flags int) (int, error)
ReadBatch(ms []ipv4.Message, flags int) (int, error)
}
type ( type (
// UDPSession defines a KCP session implemented by UDP // UDPSession defines a KCP session implemented by UDP
UDPSession struct { UDPSession struct {

View File

@@ -13,15 +13,6 @@ import (
"golang.org/x/net/ipv6" "golang.org/x/net/ipv6"
) )
const (
batchSize = 16
)
type batchConn interface {
WriteBatch(ms []ipv4.Message, flags int) (int, error)
ReadBatch(ms []ipv4.Message, flags int) (int, error)
}
// the read loop for a client session // the read loop for a client session
func (s *UDPSession) readLoop() { func (s *UDPSession) readLoop() {
// default version // default version