java/protoCtrl/src/main/java/com/pravala/protocol/ctrl/SocketMessageManager.java
public boolean start ( String socketPath, LocalServerMode localServerMode, int timeout )
    {
        synchronized ( this )
        {
            if ( ctrlLink != null )
                return false;

            try
            {
                ctrlLink = new Link ( socketPath, localServerMode, timeout );
            }
            catch ( IOException e )
            {
                Log.e ( TAG, "Could not generate a new local control link on '"
                           + socketPath + "' in " + localServerMode + " mode: " + e );
                return false;
            }
            catch ( Exception e )
            {
                e.printStackTrace();
                return false;
            }
        }

        return true;
    }
/**
     * Start SocketMessageManager to connect and process messages over a local socket
     *
     * @param socketPath The path to connect a socket to.
     * @param localServerMode The mode of the local server socket.
     * @param timeout Connection timeout value in milliseconds.
     *                In server mode it will time-out if there are no accepted connections during specified time.
     * @return True on success; False if the manager is already running or cannot be started.
     */
Start SocketMessageManager to connect and process messages over a local socket
@param socketPath The path to connect a socket to.
@param localServerMode The mode of the local server socket.
@param timeout Connection timeout value in milliseconds.
In server mode it will time-out if there are no accepted connections during specified time.
@return True on success; False if the manager is already running or cannot be started.
Start SocketMessageManager to connect and process messages over a local socket @param socketPath The path to connect a socket to . @param localServerMode The mode of the local server socket . @param timeout Connection timeout value in milliseconds . In server mode it will time - out if there are no accepted connections during specified time . @return True on success ; False if the manager is already running or cannot be started .
public boolean start ( String socketPath, LocalServerMode localServerMode, int timeout )
    {
        synchronized ( this )
        {
            if ( ctrlLink != null )
                return false;
            try
            {
                ctrlLink = new Link ( socketPath, localServerMode, timeout );
            }
            catch ( IOException e )
            {
                Log.e ( TAG, "Could not generate a new local control link on '"
                           + socketPath + "' in " + localServerMode + " mode: " + e );
                return false;
            }
            catch ( Exception e )
            {
                e.printStackTrace();
                return false;
            }
        }
        return true;
    }
public boolean start ( String socketPath , LocalServerMode localServerMode , int timeout ) { synchronized ( this ) { if ( ctrlLink != null ) return false ; try { ctrlLink = new Link ( socketPath , localServerMode , timeout ) ; } catch ( IOException e ) { Log . e ( TAG , "Could not generate a new local control link on '" + socketPath + "' in " + localServerMode + " mode: " + e ) ; return false ; } catch ( Exception e ) { e . printStackTrace ( ) ; return false ; } } return true ; }
Start SocketMessageManager to connect and process messages over a local socket
 @param socketPath The path to connect a socket to.
Start SocketMessageManager to connect and process messages over a local socket @param socketPath The path to connect a socket to .