public final class Server
extends java.lang.Object
| Constructor and Description |
|---|
Server(boolean verbose,
boolean loop,
java.lang.String program,
java.lang.String remoteHost,
int port,
java.lang.String userFile,
int timeout)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args) |
public Server(boolean verbose,
boolean loop,
java.lang.String program,
java.lang.String remoteHost,
int port,
java.lang.String userFile,
int timeout)
throws java.lang.Exception
verbose - Log everything sent and received to stderrloop - Restart program and wait for new connection after
connection is closed (only for incoming connections)program - Command line for Go programremoteHost - If null then the server waits for incoming
connections, otherwise it connects to a remote computer with this
name.port - Port number at remote hostuserFile - file containing login information that is sent to thetimeout - Timeout in seconds, zero for no timeout.
remote host. Only used if remoteHost is set.java.lang.Exception