public class ServerInfo extends Object
| 构造器和说明 |
|---|
ServerInfo(String ip_addr,
int port)
Constructor
|
protected String ip_addr
protected int port
public ServerInfo(String ip_addr, int port)
ip_addr - address of the serverport - the port of the serverpublic String getIpAddr()
public int getPort()
public Socket connect() throws IOException
IOException - if an error occurredCopyright © 2017. All rights reserved.