SendTo call sync link to send buffer
(msgType string, msgPayload []byte)
| 201 | |
| 202 | //SendTo call sync link to send buffer |
| 203 | func (this *Peer) SendRaw(msgType string, msgPayload []byte) error { |
| 204 | if this.Link != nil && this.Link.Valid() { |
| 205 | return this.Link.SendRaw(msgPayload) |
| 206 | } |
| 207 | return errors.New("[p2p]sync link invalid") |
| 208 | } |
| 209 | |
| 210 | //Close halt sync connection |
| 211 | func (this *Peer) Close() { |