IsAddrInOutConnRecord return result whether addr is in outConnRecord
(addr string)
| 586 | |
| 587 | //IsAddrInOutConnRecord return result whether addr is in outConnRecord |
| 588 | func (this *NetServer) IsAddrInOutConnRecord(addr string) bool { |
| 589 | this.outConnRecord.RLock() |
| 590 | defer this.outConnRecord.RUnlock() |
| 591 | return this.outConnRecord.OutConnectingAddrs.Has(addr) |
| 592 | } |
| 593 | |
| 594 | //RemoveOutConnRecord remove out connection from outConnRecord |
| 595 | func (this *NetServer) RemoveFromOutConnRecord(addr string) { |