Code example for Socket

Methods: getRemoteSocketAddress

0
    public int getLocalPort() { 
        return s.getLocalPort();
    } 
 
    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 {