List of utility methods to do Server Socket Create
ServerSocket | createServerSocket() create Server Socket return createServerSocket(PORT);
|
ServerSocket | createServerSocket(int port) create Server Socket ServerSocket server = new ServerSocket(port); server.setReceiveBufferSize(RECV_BUF_SIZE); return server; |
SSLServerSocket | createServerSocket(int port, int backlog, String host, SSLServerSocketFactory f) create Server Socket ServerSocket ss = null; if (f != null) { ss = f.createServerSocket(port, backlog, InetAddress.getByName(host)); } else { return null; String oldCipherOrder[] = ((SSLServerSocket) ss).getSupportedCipherSuites(); ((SSLServerSocket) ss).setEnabledCipherSuites(getEnabledCipherSuites(oldCipherOrder)); ... |
ServerSocket | createServerSocket(int start_port) Finds first available port starting at start_port and returns server socket ServerSocket ret = null; while (true) { try { ServerSocket temp_tcpListener; temp_tcpListener = new ServerSocket(start_port); ret = temp_tcpListener; } catch (BindException bex) { start_port++; ... |