mirror of
https://github.com/SagerNet/sing.git
synced 2025-04-03 03:47:38 +03:00
Merge ThreadSafeReader into ReadWaiter interface
This commit is contained in:
parent
1f02d6daca
commit
c17babe0ba
13 changed files with 258 additions and 285 deletions
|
@ -24,8 +24,8 @@ type AssociatePacketReadWaiter struct {
|
|||
readWaiter N.PacketReadWaiter
|
||||
}
|
||||
|
||||
func (w *AssociatePacketReadWaiter) InitializeReadWaiter(newBuffer func() *buf.Buffer) {
|
||||
w.readWaiter.InitializeReadWaiter(newBuffer)
|
||||
func (w *AssociatePacketReadWaiter) InitializeReadWaiter(options N.ReadWaitOptions) (needCopy bool) {
|
||||
return w.readWaiter.InitializeReadWaiter(options)
|
||||
}
|
||||
|
||||
func (w *AssociatePacketReadWaiter) WaitReadPacket() (buffer *buf.Buffer, destination M.Socksaddr, err error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue