public class ServerNetworkIo extends Object
Modifier and Type | Field and Description |
---|---|
boolean |
active |
private List<io.netty.channel.ChannelFuture> |
channels |
private List<ClientConnection> |
connections |
static Lazy<io.netty.channel.nio.NioEventLoopGroup> |
DEFAULT_CHANNEL |
static Lazy<io.netty.channel.epoll.EpollEventLoopGroup> |
EPOLL_CHANNEL |
private static Logger |
LOGGER |
private MinecraftServer |
server |
Constructor and Description |
---|
ServerNetworkIo(MinecraftServer server) |
Modifier and Type | Method and Description |
---|---|
void |
bind(InetAddress address,
int port) |
SocketAddress |
bindLocal() |
MinecraftServer |
getServer() |
void |
stop() |
void |
tick() |
private static final Logger LOGGER
public static final Lazy<io.netty.channel.nio.NioEventLoopGroup> DEFAULT_CHANNEL
public static final Lazy<io.netty.channel.epoll.EpollEventLoopGroup> EPOLL_CHANNEL
private final MinecraftServer server
public volatile boolean active
private final List<io.netty.channel.ChannelFuture> channels
private final List<ClientConnection> connections
public ServerNetworkIo(MinecraftServer server)
public void bind(@Nullable InetAddress address, int port) throws IOException
IOException
@Environment(value=CLIENT) public SocketAddress bindLocal()
public void stop()
public void tick()
public MinecraftServer getServer()