|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.crsh.util.AbstractSocketServer
public abstract class AbstractSocketServer
Field Summary | |
---|---|
private int |
bindingPort
. |
private InputStream |
in
. |
private OutputStream |
out
. |
private int |
port
. |
private Socket |
socket
. |
private ServerSocket |
socketServer
. |
Constructor Summary | |
---|---|
AbstractSocketServer(int bindingPort)
|
Method Summary | |
---|---|
void |
accept()
|
int |
bind()
|
void |
close()
|
int |
getBindingPort()
|
int |
getPort()
|
protected abstract void |
handle(InputStream in,
OutputStream out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final int bindingPort
private ServerSocket socketServer
private Socket socket
private InputStream in
private OutputStream out
private int port
Constructor Detail |
---|
public AbstractSocketServer(int bindingPort)
Method Detail |
---|
public final int getBindingPort()
public final int getPort()
public final int bind() throws IOException
IOException
public final void accept() throws IOException
IOException
protected abstract void handle(InputStream in, OutputStream out) throws IOException
IOException
public final void close()
close
in interface Closeable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |