public class Net extends Object
| Constructor and Description |
|---|
Net() |
Net(int port,
boolean ipv6) |
Net(String bindIp,
int port,
boolean ipv6) |
| Modifier and Type | Method and Description |
|---|---|
static Net |
defaults() |
String |
getBindIp() |
int |
getPort() |
InetAddress |
getServerAddress() |
boolean |
isIpv6() |
public Net()
throws IOException
IOExceptionpublic Net(int port,
boolean ipv6)
public Net(String bindIp, int port, boolean ipv6)
public String getBindIp()
public int getPort()
public boolean isIpv6()
public InetAddress getServerAddress() throws UnknownHostException
UnknownHostExceptionpublic static Net defaults()
Copyright © 2022. All rights reserved.