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;
 
Experience pair programming with AI  Get Codota for Java