IsAddrInInConnRecord return result whether addr is in inConnRecordList
(addr string)
| 526 | |
| 527 | //IsAddrInInConnRecord return result whether addr is in inConnRecordList |
| 528 | func (this *NetServer) IsAddrInInConnRecord(addr string) bool { |
| 529 | this.inConnRecord.RLock() |
| 530 | defer this.inConnRecord.RUnlock() |
| 531 | |
| 532 | return this.inConnRecord.InConnectingAddrs.Has(addr) |
| 533 | } |
| 534 | |
| 535 | //IsIPInInConnRecord return result whether the IP is in inConnRecordList |
| 536 | func (this *NetServer) IsIPInInConnRecord(ip string) bool { |