func (c *conn) Write(data []byte) (n int, err error) {
	req := &client.Packet{
		Type: client.PacketType_DATA,
		Payload: &client.Packet_Data{
			Data: &client.Data{
				ConnectID: c.connID,
				Data:      data,
			},
		},
	}

	klog.V(6).Infof("[tracing] send req, type: %s", req.Type)

	err = c.stream.Send(req)
	if err != nil {
		return 0, err
	}
	return len(data), err
}
// Write sends the data thru the connection over proxy service
Write sends the data thru the connection over proxy service
// Write sends the data thru the connection over proxy service
func (c *conn) Write(data []byte) (n int, err error) {
	req := &client.Packet{
		Type: client.PacketType_DATA,
		Payload: &client.Packet_Data{
			Data: &client.Data{
				ConnectID: c.connID,
				Data:      data,
			},
		},
	}
	klog.V(6).Infof("[tracing] send req, type: %s", req.Type)
	err = c.stream.Send(req)
	if err != nil {
		return 0, err
	}
	return len(data), err
}
func ( c * conn ) Write ( data [ ] byte ) ( n int , err error ) { req := & client . Packet { Type : client . PacketType_DATA , Payload : & client . Packet_Data { Data : & client . Data { ConnectID : c . connID , Data : data , } , } , } klog . V ( 6 ) . Infof ( " " , req . Type ) err = c . stream . Send ( req ) if err != nil { return 0 , err } return len ( data ) , err }
Write sends the data thru the connection over proxy service
Write sends the data thru the connection over proxy service