public class Server extends Object
| Constructor and Description |
|---|
Server(int serverPort)
Start a standalone server.
|
Server(String proxyHost,
int proxyPort,
String key)
Start a server connected to proxy.
|
| Modifier and Type | Method and Description |
|---|---|
void |
start()
Start the server.
|
void |
terminate()
Stop the server.
|
public Server(int serverPort)
throws IOException
serverPort - Port.IOException - if failed to bind localhost:port.public Server(String proxyHost, int proxyPort, String key)
proxyHost - The proxy server host.proxyPort - The proxy server port.key - The key to identify the server.Copyright © 2022. All rights reserved.