IsPeerEstablished return the establise state of given peer`s id
(p *peer.Peer)
| 242 | |
| 243 | //IsPeerEstablished return the establise state of given peer`s id |
| 244 | func (this *NetServer) IsPeerEstablished(p *peer.Peer) bool { |
| 245 | if p == nil { |
| 246 | return false |
| 247 | } |
| 248 | return this.Np.NodeEstablished(p.GetID()) |
| 249 | } |
| 250 | |
| 251 | //Connect used to connect net address under sync or cons mode |
| 252 | func (this *NetServer) Connect(addr string) error { |
nothing calls this directly
no test coverage detected