Improve read waiter interface

This commit is contained in:
世界
2023-12-07 11:56:57 +08:00
parent 330a712be6
commit 8be5ca0b17
17 changed files with 287 additions and 312 deletions

View File

@@ -85,9 +85,10 @@ func (c *ClientConn) Upstream() any {
type ClientPacketConn struct {
net.Conn
access sync.Mutex
key [KeyLength]byte
headerWritten bool
access sync.Mutex
key [KeyLength]byte
headerWritten bool
readWaitOptions N.ReadWaitOptions
}
func NewClientPacketConn(conn net.Conn, key [KeyLength]byte) *ClientPacketConn {