edu.udayton.udri.asset.novatel/src/edu/udayton/udri/asset/novatel/impl/timechanger/TimeChangeImpl.java
private boolean connect()
        {
            try
            {
                m_Socket = m_ClientSocketFactory.createClientSocket(HOST, m_Port);
                m_OutputStream = m_Socket.getOutputStream();
            }
            catch (final IOException exception)
            {
                final String errorMsg = "An error occurred trying to create a client "
                        + "socket when trying to connect to the time service.";
                
                Logging.log(LogService.LOG_ERROR, exception, errorMsg);
                
                
                m_StatusHandler.handleStatusUpdate(getComponentStatus(SummaryStatusEnum.BAD, exception.getMessage()));
                return false;
            }
            
            return true;
        }
/**
         * Function to connect to the time service over the specified port. 
         * @return
         *  true if the connection was successful. false otherwise.
         */
Function to connect to the time service over the specified port.
@return
true if the connection was successful. false otherwise.
Function to connect to the time service over the specified port . @return true if the connection was successful . false otherwise .
private boolean connect()
        {
            try
            {
                m_Socket = m_ClientSocketFactory.createClientSocket(HOST, m_Port);
                m_OutputStream = m_Socket.getOutputStream();
            }
            catch (final IOException exception)
            {
                final String errorMsg = "An error occurred trying to create a client "
                        + "socket when trying to connect to the time service.";
                Logging.log(LogService.LOG_ERROR, exception, errorMsg);
                m_StatusHandler.handleStatusUpdate(getComponentStatus(SummaryStatusEnum.BAD, exception.getMessage()));
                return false;
            }
            return true;
        }
private boolean connect ( ) { try { m_Socket = m_ClientSocketFactory . createClientSocket ( HOST , m_Port ) ; m_OutputStream = m_Socket . getOutputStream ( ) ; } catch ( final IOException exception ) { final String errorMsg = "An error occurred trying to create a client " + "socket when trying to connect to the time service." ; Logging . log ( LogService . LOG_ERROR , exception , errorMsg ) ; m_StatusHandler . handleStatusUpdate ( getComponentStatus ( SummaryStatusEnum . BAD , exception . getMessage ( ) ) ) ; return false ; } return true ; }
Function to connect to the time service over the specified port.
Function to connect to the time service over the specified port .