java.lang.Object
convex.net.AServer
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
close()
abstract InetSocketAddress
getPort()
Gets the port that this server instance is configured to listen onabstract void
launch()
void
Sets the port for this server.
-
Constructor Details
-
AServer
public AServer()
-
-
Method Details
-
getPort
Gets the port that this server instance is configured to listen on- Returns:
- Port number, may be null if not set
-
close
public abstract void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
getHostAddress
-
setPort
Sets the port for this server. Should be called prior to launch- Parameters:
port
-
-
launch
- Throws:
IOException
InterruptedException
-