mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-04 16:02:26 +08:00
修复Win编译问题
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user