public class ServerAddress
extends java.lang.Object
服务器地址实体类
用来表示一个服务器地址,比如 ip + port
Server address entity
It is used to find a server by ip and port
在使用的时候,推荐直接使用有参构造器
看起来就像这样:
// 指定网络地址的端口
new ServerAddress("127.0.0.1", "21");
Advise using the constructor with arguments
It looks like this:
// Appointed address and port
new ServerAddress("127.0.0.1", "21");
Email: fishinlove@163.com
created by 2019/04/02 13:59:34
| 构造器和说明 |
|---|
ServerAddress() |
ServerAddress(java.lang.String ip,
int port) |
Copyright © 2019. All Rights Reserved.