public void bind(final SocketAddress endpoint, final int backlog) throws IOException { delegate.bind(endpoint, backlog); }
public void bind(final SocketAddress endpoint) throws IOException { delegate.bind(endpoint); }
serverSocket.setReceiveBufferSize(socketBufferSize); serverSocket.bind(new InetSocketAddress(bindAddr, nport), backlog); finishServerSocket(serverSocket); return serverSocket;
InetSocketAddress localServerAddress = new InetSocketAddress( InetAddress.getLoopbackAddress(), port); listeningSocket.bind(localServerAddress); Future<SSLSocket> acceptFuture; acceptFuture = workerPool.submit(new Callable<SSLSocket>() {
@Override public void bind(SocketAddress endpoint) throws IOException { ss.bind(endpoint); }
@Override public void bind(SocketAddress endpoint, int backlog) throws IOException { ss.bind(endpoint, backlog); }
public void bind(final SocketAddress endpoint, final int backlog) throws IOException { delegate.bind(endpoint, backlog); }
public void bind(final SocketAddress endpoint) throws IOException { delegate.bind(endpoint); }
public void bind(final SocketAddress endpoint) throws IOException { delegate.bind(endpoint); }
public void bind(final SocketAddress endpoint) throws IOException { delegate.bind(endpoint); }
public void bind(final SocketAddress endpoint, final int backlog) throws IOException { delegate.bind(endpoint, backlog); }
public void bind(final SocketAddress endpoint, final int backlog) throws IOException { delegate.bind(endpoint, backlog); }
public static SSLServerSocket getServerSocket(EncryptionOptions options, InetAddress address, int port) throws IOException { SSLContext ctx = createSSLContext(options, true); SSLServerSocket serverSocket = (SSLServerSocket)ctx.getServerSocketFactory().createServerSocket(); try { serverSocket.setReuseAddress(true); prepareSocket(serverSocket, options); serverSocket.bind(new InetSocketAddress(address, port), 500); return serverSocket; } catch (IllegalArgumentException | SecurityException | IOException e) { serverSocket.close(); throw e; } }
public static SSLServerSocket getServerSocket(EncryptionOptions options, InetAddress address, int port) throws IOException { SSLContext ctx = createSSLContext(options, true); SSLServerSocket serverSocket = (SSLServerSocket)ctx.getServerSocketFactory().createServerSocket(); try { serverSocket.setReuseAddress(true); prepareSocket(serverSocket, options); serverSocket.bind(new InetSocketAddress(address, port), 500); return serverSocket; } catch (IllegalArgumentException | SecurityException | IOException e) { serverSocket.close(); throw e; } }
public static SSLServerSocket getServerSocket(EncryptionOptions options, InetAddress address, int port) throws IOException { SSLContext ctx = createSSLContext(options, true); SSLServerSocket serverSocket = (SSLServerSocket)ctx.getServerSocketFactory().createServerSocket(); try { serverSocket.setReuseAddress(true); prepareSocket(serverSocket, options); serverSocket.bind(new InetSocketAddress(address, port), 500); return serverSocket; } catch (IllegalArgumentException | SecurityException | IOException e) { serverSocket.close(); throw e; } }
public static SSLServerSocket getServerSocket(EncryptionOptions options, InetAddress address, int port) throws IOException { SSLContext ctx = createSSLContext(options, true); SSLServerSocket serverSocket = (SSLServerSocket)ctx.getServerSocketFactory().createServerSocket(); serverSocket.setReuseAddress(true); String[] suits = filterCipherSuites(serverSocket.getSupportedCipherSuites(), options.cipher_suites); serverSocket.setEnabledCipherSuites(suits); serverSocket.setNeedClientAuth(options.require_client_auth); serverSocket.setEnabledProtocols(ACCEPTED_PROTOCOLS); serverSocket.bind(new InetSocketAddress(address, port), 500); return serverSocket; }
serverSocket.bind(new InetSocketAddress(0));
final SSLServerSocket serverSocket = (SSLServerSocket) serverSslContext.getServerSocketFactory().createServerSocket(); serverSocket.setNeedClientAuth(true); serverSocket.bind(new InetSocketAddress(0));
final SSLServerSocket serverSocket = (SSLServerSocket) serverSslContext.getServerSocketFactory().createServerSocket(); serverSocket.setNeedClientAuth(true); serverSocket.bind(new InetSocketAddress(0));
Assert.assertTrue(supportedServerProtocols.contains("SSLv3")); serverSocket.setEnabledProtocols(new String[] {"SSLv3"}); serverSocket.bind(new InetSocketAddress(0));