Package java.net
Class ServerSocket
- java.lang.Object
-
- java.net.ServerSocket
-
public class ServerSocket extends Object
-
-
Constructor Summary
Constructors Constructor Description ServerSocket(int var0)ServerSocket(int var0, int var1)ServerSocket(int var0, int var1, InetAddress var2)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Socketaccept()voidclose()InetAddressgetInetAddress()intgetLocalPort()intgetSoTimeout()protected voidimplAccept(Socket var0)static voidsetSocketFactory(SocketImplFactory var0)voidsetSoTimeout(int var0)StringtoString()
-
-
-
Constructor Detail
-
ServerSocket
public ServerSocket(int var0) throws IOException- Throws:
IOException
-
ServerSocket
public ServerSocket(int var0, int var1) throws IOException- Throws:
IOException
-
ServerSocket
public ServerSocket(int var0, int var1, InetAddress var2) throws IOException- Throws:
IOException
-
-
Method Detail
-
accept
public Socket accept() throws IOException
- Throws:
IOException
-
close
public void close() throws IOException- Throws:
IOException
-
getInetAddress
public InetAddress getInetAddress()
-
getLocalPort
public int getLocalPort()
-
getSoTimeout
public int getSoTimeout() throws IOException- Throws:
IOException
-
implAccept
protected final void implAccept(Socket var0) throws IOException
- Throws:
IOException
-
setSocketFactory
public static void setSocketFactory(SocketImplFactory var0) throws IOException
- Throws:
IOException
-
setSoTimeout
public void setSoTimeout(int var0) throws SocketException- Throws:
SocketException
-
-