public abstract class AbstractSocketServer extends Object implements Closeable
| Constructor and Description |
|---|
AbstractSocketServer(int bindingPort) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept() |
int |
bind() |
void |
close() |
int |
getBindingPort() |
int |
getPort() |
protected abstract void |
handle(InputStream in,
OutputStream out) |
public final int getBindingPort()
public final int getPort()
public final int bind()
throws IOException
IOExceptionpublic final void accept()
throws IOException
IOExceptionprotected abstract void handle(InputStream in, OutputStream out) throws IOException
IOExceptionpublic final void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2015 eXo Platform SAS. All Rights Reserved.