/** * Determines whether or not the specified session is a UDP session. * * @param session The session to check. * @return <code>true</code> if the session is a UDP session, otherwise * <code>false</code>. */ public static boolean isUdp(final IoSession session) { return session.getTransportType().isConnectionless(); } }
final boolean isUdp = type.isConnectionless(); final IceCandidate remoteCandidate; if (!m_iceMediaStream.hasRemoteCandidate(remoteAddress, isUdp))