Code example for Socket

Methods: closeshutdownOutput

0
            socket.shutdownInput();
        } catch (IOException e) {
            Log.v(LOGTAG, "Socket#shutdownInput", e);
        } 
        try { 
            socket.shutdownOutput();
        } catch (IOException e) {
            Log.v(LOGTAG, "Socket#shutdownOutput", e);
        } 
        try { 
            socket.close();
        } catch (IOException e) {
            Log.v(LOGTAG, "Socket#close", e);
        } 
    } 
 
    private class SocketPipe implements Runnable {
 
        private Socket in, out;
 
Stop searching for code, let great code find you!  Add Codota to your java IDE