Code example for ServerSocket

Methods: getLocalSocketAddress

0
    public ServerSocketChannelConfig getConfig() { 
        return config;
    } 
 
    public InetSocketAddress getLocalAddress() {
        return (InetSocketAddress) socket.getLocalSocketAddress();
    } 
 
    public InetSocketAddress getRemoteAddress() {
        return null; 
    } 
 
    public boolean isBound() { 
        return isOpen() && socket.isBound();
    } 
 
    @Override 
    protected boolean setClosed() { 
        return super.setClosed(); 
    } 
}