You must provide
--port argument. Without it, the
server won't start. If you want to start the server at random port, you
should specify a file name as the value of this
option. For example:
new FtCLI( new TkText("hello, world!"), "--port=/tmp/port.txt", "--threads=1", "--lifetime=3000" ).start(Exit.NEVER);
The code above will start a server and will never stop it. It will
work in the foreground. The server will be started at a random TCP
port and its number will be saved to
The class is immutable and thread-safe.
|Constructor and Description|
Copyright © 2015–2016 Take. All rights reserved.