|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdriver.CBR.Server
public static class CBR.Server
A server node in the simulation. This node simply listens for incoming packets and prints a message for each one that it receives.
| Field Summary | |
|---|---|
private NetAddress |
localAddr
The IP address of this node. |
private int |
packetsReceived
The number of packets this node has received. |
private CBR.ServerInterface |
self
The proxy interface for this object. |
private TransInterface.TransUdpInterface |
udp
The UDP interface used by this node. |
| Constructor Summary | |
|---|---|
CBR.Server(TransInterface.TransUdpInterface udp,
NetAddress localAddr)
Creates a new Server. |
|
| Method Summary | |
|---|---|
CBR.ServerInterface |
getProxy()
Returns the proxy interface for this object. |
void |
run()
Starts the server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private CBR.ServerInterface self
private TransInterface.TransUdpInterface udp
private NetAddress localAddr
private int packetsReceived
| Constructor Detail |
|---|
public CBR.Server(TransInterface.TransUdpInterface udp,
NetAddress localAddr)
Server.
udp - the UDP interface used by this nodelocalAddr - the IP address of this node| Method Detail |
|---|
public CBR.ServerInterface getProxy()
public void run()
run in interface CBR.ServerInterface
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||