mil.dod.th.ose.remote/src/mil/dod/th/ose/remote/transport/TransportChannelImpl.java
private boolean connectToRemoteAddress(final TransportLayer transport, final Address remoteAddress)
    {
        // Try to make a new connection or reconnect
        try
        {
            transport.connect(remoteAddress);
            setStatusAndLog(ChannelStatus.Active, String.format("Successfully connected to [%s]", 
                    getRemoteMessageAddress()));
        }
        catch (final IllegalStateException e)
        {
            m_Status = ChannelStatus.Active;
            m_Logging.warning(e, "Tried to make a connection to [%s] that was already established",
                getRemoteMessageAddress());
        }
        catch (final CCommException e)
        {
            setStatusAndLog(ChannelStatus.Unavailable, String.format("Unable to connect to [%s]", 
                    getRemoteMessageAddress()));
            return false;
        }
        
        return true;
    }
/**
     * Connect or reconnect to a remote address.
     * @param transport
     *  transport layer to connect to remote address
     * @param remoteAddress
     *  remote address to connect to
     * @return
     *  true if the connection/re-connection was successful
     */
Connect or reconnect to a remote address.
@param transport
transport layer to connect to remote address
@param remoteAddress
remote address to connect to
@return
true if the connection/re-connection was successful
Connect or reconnect to a remote address . @param transport transport layer to connect to remote address @param remoteAddress remote address to connect to @return true if the connection / re - connection was successful
private boolean connectToRemoteAddress(final TransportLayer transport, final Address remoteAddress)
    {
        try
        {
            transport.connect(remoteAddress);
            setStatusAndLog(ChannelStatus.Active, String.format("Successfully connected to [%s]", 
                    getRemoteMessageAddress()));
        }
        catch (final IllegalStateException e)
        {
            m_Status = ChannelStatus.Active;
            m_Logging.warning(e, "Tried to make a connection to [%s] that was already established",
                getRemoteMessageAddress());
        }
        catch (final CCommException e)
        {
            setStatusAndLog(ChannelStatus.Unavailable, String.format("Unable to connect to [%s]", 
                    getRemoteMessageAddress()));
            return false;
        }
        return true;
    }
private boolean connectToRemoteAddress ( final TransportLayer transport , final Address remoteAddress ) { try { transport . connect ( remoteAddress ) ; setStatusAndLog ( ChannelStatus . Active , String . format ( "Successfully connected to [%s]" , getRemoteMessageAddress ( ) ) ) ; } catch ( final IllegalStateException e ) { m_Status = ChannelStatus . Active ; m_Logging . warning ( e , "Tried to make a connection to [%s] that was already established" , getRemoteMessageAddress ( ) ) ; } catch ( final CCommException e ) { setStatusAndLog ( ChannelStatus . Unavailable , String . format ( "Unable to connect to [%s]" , getRemoteMessageAddress ( ) ) ) ; return false ; } return true ; }
Connect or reconnect to a remote address.
Connect or reconnect to a remote address .
// Try to make a new connection or reconnect