Code example for Socket

Methods: getLocalSocketAddress

0
    public SocketAddress getRemoteSocketAddress() {
        return s.getRemoteSocketAddress();
    } 
 
    public SocketAddress getLocalSocketAddress() {
        return s.getLocalSocketAddress();
    } 
 
    //public SocketChannel getChannel() { 
    //    return s.getChannel(); 
    //} 
 
    public InputStream getInputStream() throws IOException {
        return in;
    } 
 
    public OutputStream getOutputStream() throws IOException {
        return out;
    } 
 
    public void setTcpNoDelay(boolean on) throws SocketException {