|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmil.navy.nps.bridge.Channel
Field Summary | |
(package private) java.util.HashSet |
clients
|
(package private) java.net.InetAddress |
mcastAddress
|
(package private) int |
port
|
(package private) java.net.MulticastSocket |
sock
|
Constructor Summary | |
Channel(java.lang.String pMcastAddress,
int pPort)
Constructor; takes a multicast address and a port to listen on |
Method Summary | |
boolean |
equals(java.lang.Object pObject)
A Channel object is equal to another channel object if it has the same multicast address and port to listen on. |
int |
hashCode()
hascode, just the hashcode of the mcast address. |
void |
run()
Implementation of the Runnable interface. |
void |
subscribeClient(Client pClient)
Subscribe one client. |
void |
unsubscribeClient(Client pClient)
Unsubscribe a client; this client will no longer receive packets that arrive on this mcast address. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
java.net.InetAddress mcastAddress
int port
java.net.MulticastSocket sock
java.util.HashSet clients
Constructor Detail |
public Channel(java.lang.String pMcastAddress, int pPort)
Method Detail |
public int hashCode()
public boolean equals(java.lang.Object pObject)
public void subscribeClient(Client pClient)
public void unsubscribeClient(Client pClient)
public void run()
run
in interface java.lang.Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |