public final class NetcodeServerFactory
extends java.lang.Object
| Constructor and Description |
|---|
NetcodeServerFactory(int port) |
NetcodeServerFactory(int port,
SocketMode socketMode,
SecurityMode securityMode)
Creates a new factory instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
runAfterBind(java.util.function.Consumer<java.net.ServerSocket> runner) |
void |
setMaxClients(int max) |
NetcodeServer |
start() |
public NetcodeServerFactory(int port,
SocketMode socketMode,
SecurityMode securityMode)
public NetcodeServerFactory(int port)
public void runAfterBind(java.util.function.Consumer<java.net.ServerSocket> runner)
public void setMaxClients(int max)
public NetcodeServer start() throws java.io.IOException
java.io.IOExceptionCopyright © 2018. All Rights Reserved.