mirror of
https://github.com/SagerNet/sing.git
synced 2025-04-05 12:57:38 +03:00
18 lines
385 B
Go
18 lines
385 B
Go
package network
|
|
|
|
import (
|
|
"github.com/sagernet/sing/common/buf"
|
|
M "github.com/sagernet/sing/common/metadata"
|
|
)
|
|
|
|
type ThreadUnsafeWriter interface {
|
|
WriteIsThreadUnsafe()
|
|
}
|
|
|
|
type ThreadSafeReader interface {
|
|
ReadBufferThreadSafe() (buffer *buf.Buffer, err error)
|
|
}
|
|
|
|
type ThreadSafePacketReader interface {
|
|
ReadPacketThreadSafe() (buffer *buf.Buffer, addr M.Socksaddr, err error)
|
|
}
|