以下有錯誤:
ServerSocket 類提供了四個構(gòu)造器:
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)
這些構(gòu)造函數(shù)都不是 ServerSocket 的。另外,這里的數(shù)量也不對,明明是六個,怎么變成了四個?
----歡迎大家試用我們的單點登錄
http://zheguisoft.com