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

Method WaitReadFrom

transport/shadowsocks/shadowstream/packet.go:94–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92}
93
94func (c *PacketConn) WaitReadFrom() (data []byte, put func(), addr net.Addr, err error) {
95 data, put, addr, err = c.EnhancePacketConn.WaitReadFrom()
96 if err != nil {
97 return
98 }
99 data, err = UnpackInplace(data, c.Cipher)
100 if err != nil {
101 if put != nil {
102 put()
103 }
104 data = nil
105 put = nil
106 return
107 }
108 return
109}

Callers

nothing calls this directly

Calls 2

UnpackInplaceFunction · 0.85
WaitReadFromMethod · 0.65

Tested by

no test coverage detected