package com.aionemu.commons.network;
import java.net.InetSocketAddress;
/**
* This class represents ServerCfg for configuring NioServer
*
* @author -Nemesiss-, Neon
*/
public record ServerCfg(InetSocketAddress address, String clientDescription, ConnectionFactory connectionFactory) {
public boolean isAnyLocalAddress() {
return address.getAddress().isAnyLocalAddress();
}
public String getIP() {
return address.getAddress().getHostAddress();
}
public int getPort() {
return address.getPort();
}
public String getAddressInfo() {
return (isAnyLocalAddress() ? "all addresses on port " : getIP() + ":") + getPort();
}
}
순위 | 닉네임 | 포인트 |
---|---|---|
1 |
![]() |
102,949 |
2 |
![]() |
63,733 |
3 |
![]() |
51,771 |
4 |
![]() |
36,923 |
5 |
![]() |
35,011 |
6 |
![]() |
29,470 |
7 |
![]() |
29,077 |
8 |
![]() |
28,199 |
9 |
![]() |
26,731 |
10 |
![]() |
17,020 |