javax.net.ssl.SSLServerSocket.getLocalSocketAddress()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(126)

本文整理了Java中javax.net.ssl.SSLServerSocket.getLocalSocketAddress()方法的一些代码示例,展示了SSLServerSocket.getLocalSocketAddress()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SSLServerSocket.getLocalSocketAddress()方法的具体详情如下:
包路径:javax.net.ssl.SSLServerSocket
类名称:SSLServerSocket
方法名:getLocalSocketAddress

SSLServerSocket.getLocalSocketAddress介绍

暂无

代码示例

代码示例来源:origin: wildfly/wildfly

public SocketAddress getLocalSocketAddress() {
  return delegate.getLocalSocketAddress();
}

代码示例来源:origin: wildfly/wildfly

protected synchronized void becomeKeyserver() throws Exception {
  if(srv_sock == null || srv_sock.isClosed()) {
    log.debug("%s: becoming keyserver; creating server socket", local_addr);
    srv_sock=createServerSocket();
    srv_sock_handler=new Runner(getThreadFactory(), SSL_KEY_EXCHANGE.class.getSimpleName() + "-runner",
                  this::accept, () -> Util.close(srv_sock));
    srv_sock_handler.start();
    log.debug("SSL server socket listening on %s", srv_sock.getLocalSocketAddress());
  }
}

代码示例来源:origin: i2p/i2p.i2p

public SocketAddress getLocalAddress() {
  return _socket.getLocalSocketAddress();
}

代码示例来源:origin: apache/karaf

@Override
public SocketAddress getLocalSocketAddress() {
  return ss.getLocalSocketAddress();
}

代码示例来源:origin: org.jboss.eap/wildfly-client-all

public SocketAddress getLocalSocketAddress() {
  return delegate.getLocalSocketAddress();
}

代码示例来源:origin: org.wildfly.security/wildfly-elytron

public SocketAddress getLocalSocketAddress() {
  return delegate.getLocalSocketAddress();
}

代码示例来源:origin: org.wildfly.security/wildfly-elytron-ssl

public SocketAddress getLocalSocketAddress() {
  return delegate.getLocalSocketAddress();
}

代码示例来源:origin: org.jboss.eap/wildfly-client-all

protected synchronized void becomeKeyserver() throws Exception {
  if(srv_sock == null || srv_sock.isClosed()) {
    log.debug("%s: becoming keyserver; creating server socket", local_addr);
    srv_sock=createServerSocket();
    srv_sock_handler=new Runner(getThreadFactory(), SSL_KEY_EXCHANGE.class.getSimpleName() + "-runner",
                  this::accept, () -> Util.close(srv_sock));
    srv_sock_handler.start();
    log.debug("SSL server socket listening on %s", srv_sock.getLocalSocketAddress());
  }
}

相关文章