Java Socket Port getServerSocket(int i_Port)

Here you can find the source of getServerSocket(int i_Port)

Description

get Server Socket

License

Open Source License

Declaration

public final static ServerSocket getServerSocket(int i_Port) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.net.ServerSocket;

public class Main {

    public final static ServerSocket getServerSocket(int i_Port) {
        ServerSocket v_Ret = null;
        try {//from  w w  w  .jav  a2  s  .c  o  m
            v_Ret = new ServerSocket(i_Port);
        } catch (Exception exce) {
            v_Ret = null;
        }

        return v_Ret;
    }
}

Related

  1. getFreeSocketPort()
  2. getHostPort(Socket s)
  3. getMyPortNumber(ServerSocket serverSocket)
  4. getPort(ServerSocket server)
  5. getRandomPortServerSocket()
  6. isValidSocket(String host, int port)
  7. releasePort(ServerSocket ss)
  8. removeSocket(String host, int port)
  9. waitForSocket(int port)