YGPS/src/com/mediatek/ygps/ClientSocket.java
private void closeClient() {
        Log.v("@M_" + TAG, "enter closeClient");
        try {
            if (null != mDataInput) {
                mDataInput.close();
            }
            if (null != mDataOutput) {
                mDataOutput.close();
            }
            if (null != mClientSocket) {
                mClientSocket.close();
            }
        } catch (IOException e) {
            Log.w("@M_" + TAG, "closeClient IOException: " + e.getMessage());
        } finally {
            mClientSocket = null;
            mDataInput = null;
            mDataOutput = null;
        }
    }
/**
     * Stop client socket and disconnect with server.
     */
Stop client socket and disconnect with server.
Stop client socket and disconnect with server .
private void closeClient() {
        Log.v("@M_" + TAG, "enter closeClient");
        try {
            if (null != mDataInput) {
                mDataInput.close();
            }
            if (null != mDataOutput) {
                mDataOutput.close();
            }
            if (null != mClientSocket) {
                mClientSocket.close();
            }
        } catch (IOException e) {
            Log.w("@M_" + TAG, "closeClient IOException: " + e.getMessage());
        } finally {
            mClientSocket = null;
            mDataInput = null;
            mDataOutput = null;
        }
    }
private void closeClient ( ) { Log . v ( "@M_" + TAG , "enter closeClient" ) ; try { if ( null != mDataInput ) { mDataInput . close ( ) ; } if ( null != mDataOutput ) { mDataOutput . close ( ) ; } if ( null != mClientSocket ) { mClientSocket . close ( ) ; } } catch ( IOException e ) { Log . w ( "@M_" + TAG , "closeClient IOException: " + e . getMessage ( ) ) ; } finally { mClientSocket = null ; mDataInput = null ; mDataOutput = null ; } }
Stop client socket and disconnect with server.
Stop client socket and disconnect with server .