This commit is contained in:
gospider
2025-02-22 15:24:51 +08:00
parent 730d3fd786
commit 1a2e98f7dd
2 changed files with 7 additions and 0 deletions

View File

@@ -176,3 +176,10 @@ func (c *UDPConn) WriteTo(p []byte, addr net.Addr) (n int, err error) {
}
return n, nil
}
func (c *UDPConn) SetReadBuffer(i int) error {
return c.PacketConn.(*net.UDPConn).SetReadBuffer(i)
}
func (c *UDPConn) SetWriteBuffer(i int) error {
return c.PacketConn.(*net.UDPConn).SetWriteBuffer(i)
}

BIN
test/.DS_Store vendored Normal file

Binary file not shown.