public class EchoServer extends Object
| Constructor and Description |
|---|
EchoServer(SocketAddress endpointAddress) |
| Modifier and Type | Method and Description |
|---|---|
SocketAddress |
getEndpointAddress()
Returns the
SocketAddress the server is bound to. |
void |
start()
Starts the server.
|
void |
stop()
Stops the server.
|
public EchoServer(SocketAddress endpointAddress)
public SocketAddress getEndpointAddress()
SocketAddress the server is bound to.public void start()
throws IOException
IOExceptionpublic void stop()
throws IOException
IOExceptionCopyright © 2021 Oracle Corporation. All Rights Reserved.