|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.larsan.urd.cmd.Connections
Stack for incoming connections in the command line server. This stack uses a selector that acts as a semaphor when the stack is pushed.
CmdServer| Constructor Summary | |
Connections(java.nio.channels.Selector semaphor)
The semaphor selector will be called with
wakeup when there's a new connection in
the list. |
|
| Method Summary | |
java.nio.channels.SocketChannel |
pop()
Pop a channel from the stack. |
void |
push(java.nio.channels.SocketChannel sch)
Puch a new channel ontu the stack. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Connections(java.nio.channels.Selector semaphor)
wakeup when there's a new connection in
the list.
| Method Detail |
public void push(java.nio.channels.SocketChannel sch)
public java.nio.channels.SocketChannel pop()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||