|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectequip.net.ServerSap
equip.net.ServerSapUdp
Concrete Implementation of ServerSap using
JCP (Jim's Communication Protocol)
| Field Summary | |
protected java.net.DatagramSocket |
socket
|
| Fields inherited from class equip.net.ServerSap |
address, port, status |
| Constructor Summary | |
ServerSapUdp()
Open on any port |
|
ServerSapUdp(short port)
Open on specified port |
|
| Method Summary | |
ConnectionSap |
accept()
Accept an incoming connection, normally blocking |
void |
close()
Close the server socket (no more connections) |
protected void |
finalize()
|
int |
getProtocol()
What protocol (from SapProtocol) |
protected void |
init(short port)
|
| Methods inherited from class equip.net.ServerSap |
getAddress, getPort, getStatus, rewriteLocalAddress |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.net.DatagramSocket socket
| Constructor Detail |
public ServerSapUdp()
public ServerSapUdp(short port)
| Method Detail |
protected void finalize()
protected void init(short port)
public int getProtocol()
ServerSapSapProtocol)
getProtocol in class ServerSappublic ConnectionSap accept()
ServerSap
accept in class ServerSappublic void close()
ServerSap
close in class ServerSap
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||