以下有錯誤:
ServerSocket 類提供了四個構造器:
public Socket(String host, int port) throws UnknownHostException, IOException
public Socket(InetAddress address, int port) throws IOException
public Socket(String host, int port, InetAddress localAddr, int localPort) throws IOException
public Socket(InetAddress address, int port, InetAddress localAddr, int localPort) throws IOException
public Socket()
public Socket(Proxy proxy)
這些構造函數都不是 ServerSocket 的。另外,這里的數量也不對,明明是六個,怎么變成了四個?
----歡迎大家試用我們的單點登錄
http://zheguisoft.com