java.net.ServerSocket (JDK 1.0)
This class is used by servers to listen for connection requests from clients. When you create a ServerSocket, you specify the port to listen on. The accept() method begins listening on that port, and blocks until a client requests a connection on that port. At that point, accept() accepts the connection, creating and returning a Socket that the server can use to communicate with the client.
public classServerSocketextends Object { //Public ConstructorspublicServerSocket(intport) throws IOException; publicServerSocket(intport, intbacklog) throws IOException; 1.1publicServerSocket(intport, intbacklog, InetAddressbindAddr) throws IOException; //Class Methodspublic static synchronized voidsetSocketFactory(SocketImplFactoryfac) throws IOException; //Public Instance Methodspublic Socketaccept() throws IOException; public voidclose() throws IOException; public InetAddressgetInetAddress(); public intgetLocalPort(); 1.1public synchronized intgetSoTimeout() throws IOException; 1.1public synchronized voidsetSoTimeout(inttimeout) throws SocketException; public StringtoString(); //Overrides Object//Protected Instance Methods1.1 protected final voidimplAccept(Sockets) throws IOException; }