(b []byte)
| 180 | } |
| 181 | |
| 182 | func (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 | |
| 189 | func writePacket(w io.Writer, socks5Addr, payload []byte) (int, error) { |
| 190 | buf := pool.GetBuffer() |
nothing calls this directly
no test coverage detected