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

Struct ObfsFakeTCPConn

transport/hysteria/conns/faketcp/obfs.go:13–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected