Code example for Socket

Methods: getPort

0
    public InetAddress getLocalAddress() {
        return s.getLocalAddress();
    } 
 
    public int getPort() { 
        return s.getPort();
    } 
 
    public int getLocalPort() { 
        return s.getLocalPort();
    } 
 
    public SocketAddress getRemoteSocketAddress() {
        return s.getRemoteSocketAddress();
    } 
 
    public SocketAddress getLocalSocketAddress() {
        return s.getLocalSocketAddress();
    } 
 
    //public SocketChannel getChannel() {