Modifier and Type | Method and Description |
---|---|
void |
shutdown()
Initiates an orderly shutdown of the server.
|
void |
start(ServerListener serverListener)
Starts transport.
|
public void start(ServerListener serverListener) throws IOException
Server
listener
until after start()
returns. The method only returns after it has done the equivalent of bind()ing, so it will be
able to service any connections created after returning.start
in interface Server
serverListener
- non-null
listener of server eventsIOException
- if unable to bindpublic void shutdown()
Server
ServerListener.serverShutdown()
callback is called). This
method may only be called once.