func (c *UDPConn) WriteTo(p []byte, addr net.Addr) (n int, err error) {
	buf := bytes.NewBuffer(c.bufWrite[:0])
	buf.Write(c.prefix)
	err = writeAddrWithStr(buf, addr.String())
	if err != nil {
		return 0, err
	}
	n, err = buf.Write(p)
	if err != nil {
		return 0, err
	}

	data := buf.Bytes()
	_, err = c.PacketConn.WriteTo(data, c.proxyAddress)
	if err != nil {
		return 0, err
	}
	return n, nil
}
// WriteTo implements the net.PacketConn WriteTo method.
WriteTo implements the net.PacketConn WriteTo method.
// WriteTo implements the net . PacketConn WriteTo method .
func (c *UDPConn) WriteTo(p []byte, addr net.Addr) (n int, err error) {
	buf := bytes.NewBuffer(c.bufWrite[:0])
	buf.Write(c.prefix)
	err = writeAddrWithStr(buf, addr.String())
	if err != nil {
		return 0, err
	}
	n, err = buf.Write(p)
	if err != nil {
		return 0, err
	}
	data := buf.Bytes()
	_, err = c.PacketConn.WriteTo(data, c.proxyAddress)
	if err != nil {
		return 0, err
	}
	return n, nil
}
func ( c * UDPConn ) WriteTo ( p [ ] byte , addr net . Addr ) ( n int , err error ) { buf := bytes . NewBuffer ( c . bufWrite [ : 0 ] ) buf . Write ( c . prefix ) err = writeAddrWithStr ( buf , addr . String ( ) ) if err != nil { return 0 , err } n , err = buf . Write ( p ) if err != nil { return 0 , err } data := buf . Bytes ( ) _ , err = c . PacketConn . WriteTo ( data , c . proxyAddress ) if err != nil { return 0 , err } return n , nil }
WriteTo implements the net.PacketConn WriteTo method.
WriteTo implements the net . PacketConn WriteTo method .