GetPort return peer`s sync port
()
| 196 | |
| 197 | //GetPort return peer`s sync port |
| 198 | func (this *Peer) GetPort() uint16 { |
| 199 | return this.Link.GetPort() |
| 200 | } |
| 201 | |
| 202 | //SendTo call sync link to send buffer |
| 203 | func (this *Peer) SendRaw(msgType string, msgPayload []byte) error { |