Java Utililty Methods Server Socket Create

List of utility methods to do Server Socket Create

Description

The list of methods to do Server Socket Create are organized into topic(s).

Method

ServerSocketcreateServerSocket()
create Server Socket
return createServerSocket(PORT);
ServerSocketcreateServerSocket(int port)
create Server Socket
ServerSocket server = new ServerSocket(port);
server.setReceiveBufferSize(RECV_BUF_SIZE);
return server;
SSLServerSocketcreateServerSocket(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));
...
ServerSocketcreateServerSocket(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++;
...