java.lang.Object
convex.net.AServer
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidclose()abstract InetSocketAddressgetPort()Gets the port that this server instance is configured to listen onabstract voidlaunch()voidSets 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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
getHostAddress
-
setPort
Sets the port for this server. Should be called prior to launch- Parameters:
port-
-
launch
- Throws:
IOExceptionInterruptedException
-