Code example for Socket

Methods: close, shutdownOutput

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;
 
        public SocketPipe(Socket in, Socket out) {