| Modifier and Type | Method and Description |
|---|---|
static SimpleServer |
create(ServerListener listener)
Creates a server instance.
|
int |
getPort()
Returns the number of the port to which client sockets should connect.
|
void |
run() |
void |
shutDown()
Shuts down this server.
|
public static SimpleServer create(ServerListener listener) throws IOException
getPort() Once the server is no longer needed, it should be disposed of via @{link #shutDown()}.listener - a listener for server events that allow code to read and send messages.IOExceptionpublic int getPort()
public void shutDown()
Copyright © 2014. All rights reserved.