Send transfer buffer by sync or cons link
(msg types.Message)
| 276 | |
| 277 | //Send transfer buffer by sync or cons link |
| 278 | func (this *Peer) Send(msg types.Message) error { |
| 279 | sink := comm.NewZeroCopySink(nil) |
| 280 | types.WriteMessage(sink, msg) |
| 281 | |
| 282 | return this.SendRaw(msg.CmdType(), sink.Bytes()) |
| 283 | } |
| 284 | |
| 285 | //SetHttpInfoState set peer`s httpinfo state |
| 286 | func (this *Peer) SetHttpInfoState(httpInfo bool) { |
no test coverage detected