public boolean matchesTag ( final UdpChannel udpChannel ) { if ( ! hasTag || ! udpChannel . hasTag ( ) || tag != udpChannel . tag ( ) ) { return false ; } if ( udpChannel . remoteData ( ) . getAddress ( ) . isAnyLocalAddress ( ) && udpChannel . remoteData ( ) . getPort ( ) == 0 && udpChannel . localData ( ) . getAddress ( ) . isAnyLocalAddress ( ) && udpChannel . localData ( ) . getPort ( ) == 0 ) { return true ; } throw new IllegalArgumentException ( "matching tag has set endpoint or control address" ) ; }
Does this channel have a tag match to another channel including endpoints .