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

Struct UoTPacketConn

transport/sudoku/uot.go:57–60  ·  view source on GitHub ↗

UoTPacketConn adapts a net.Conn with the Sudoku UoT framing to net.PacketConn.

Source from the content-addressed store, hash-verified

55
56// UoTPacketConn adapts a net.Conn with the Sudoku UoT framing to net.PacketConn.
57type UoTPacketConn struct {
58 conn net.Conn
59 writeMu sync.Mutex
60}
61
62func NewUoTPacketConn(conn net.Conn) *UoTPacketConn {
63 return &UoTPacketConn{conn: conn}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected