Send sends a message to the server.
(msg []byte)
| 198 | |
| 199 | // Send sends a message to the server. |
| 200 | func (s *stream) Send(msg []byte) error { |
| 201 | return s.stream.SendMsg(msg) |
| 202 | } |
| 203 | |
| 204 | // Recv receives a message from the server. |
| 205 | func (s *stream) Recv() ([]byte, error) { |