MCPcopy
hub / github.com/MetaCubeX/mihomo / ObfsUDPConn

Struct ObfsUDPConn

transport/hysteria/conns/udp/obfs.go:12–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10const udpBufferSize = 65535
11
12type ObfsUDPConn struct {
13 orig net.PacketConn
14 obfs obfs.Obfuscator
15 readBuf []byte
16 readMutex sync.Mutex
17 writeBuf []byte
18 writeMutex sync.Mutex
19}
20
21func NewObfsUDPConn(orig net.PacketConn, obfs obfs.Obfuscator) *ObfsUDPConn {
22 return &ObfsUDPConn{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected