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

Method WritePacketFrame

transport/snell/snell.go:182–187  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

180}
181
182func (s *Snell) WritePacketFrame(b []byte) (int, error) {
183 if fw, ok := s.Conn.(packetFrameWriter); ok {
184 return fw.WritePacketFrame(b)
185 }
186 return s.Conn.Write(b)
187}
188
189func writePacket(w io.Writer, socks5Addr, payload []byte) (int, error) {
190 buf := pool.GetBuffer()

Callers

nothing calls this directly

Calls 2

WritePacketFrameMethod · 0.65
WriteMethod · 0.65

Tested by

no test coverage detected