|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdrcl.DrclObj
drcl.comp.Component
drcl.net.Module
drcl.inet.Protocol
drcl.inet.core.sIGMP
A very preliminary IGMP protocol. This component only implements REPORT and LEAVE. REPORT retransmission and QUERY are not implemented. And this component can be used in both a host and a router.
Contracts:
.service_id@: IDLookup and IDConfig as client.
.mcast_service@ (for host): IDConfig as reactor.
.mcastHost@ (for router): McastHostEvent as initiator.
down@: PktSending and
PktDelivery as client.
Reference:
| Nested Class Summary | |
static class |
sIGMP.IGMPPacket
|
| Nested classes inherited from class drcl.comp.Component |
Component.Locks |
| Field Summary | |
static int |
IGMP_MESSAGE_SIZE
IGMP message size (RFC2236). |
static int |
LEAVE
Leave Group message type (RFC2236). |
static int |
QUERY
Membership Query message type (RFC2236). |
static int |
REPORT
Version 2 Membership Report message type (RFC2236). |
static int |
REPORT1
Version 1 Membership Report message type (RFC2236). |
| Fields inherited from class drcl.net.Module |
downPort, PortGroup_DOWN, PortGroup_UP, upPort |
| Constructor Summary | |
sIGMP()
|
|
sIGMP(java.lang.String id_)
|
|
| Method Summary | |
void |
duplicate(java.lang.Object source_)
Duplicates the content of source_, including ID, name, child components and connections among them, to this component. |
java.lang.String |
getName()
Returns the (informational) name of the component. |
java.lang.String |
info()
Provide multicast group membership information on each interface. |
void |
join(long group_)
Makes this host joins the multicast group. |
void |
leave(long group_)
Makes this host leaves the multicast group. |
void |
reset()
Resets the component for being used anew. |
| Methods inherited from class drcl.net.Module |
cancelTimeout, setTimeout, setTimeoutAt |
| Methods inherited from class drcl.DrclObj |
clone |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int QUERY
public static final int REPORT
public static final int LEAVE
public static final int REPORT1
public static final int IGMP_MESSAGE_SIZE
| Constructor Detail |
public sIGMP()
public sIGMP(java.lang.String id_)
| Method Detail |
public java.lang.String getName()
Component
getName in class Componentpublic void duplicate(java.lang.Object source_)
Component
duplicate in interface ObjectDuplicableduplicate in class Protocolpublic java.lang.String info()
info in class Componentpublic void reset()
Component
reset in class Componentpublic void join(long group_)
public void leave(long group_)
|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||