Alex Bikfalvi
SimStream Documentation
PacketIgmp.h
00001 #pragma once 00002 00003 #include "Packet.h" 00004 #include "Address.h" 00005 00006 #define PACKET_IGMP_HEADER 64 00007 00008 class CPacketIgmp : public CPacket 00009 { 00010 public: 00011 enum EPacketIgmpType 00012 { 00013 PACKET_IGMP_MEMBERSHIP_QUERY = 0x11, 00014 PACKET_IGMP_MEMBERSHIP_REPORT = 0x16, 00015 PACKET_IGMP_LEAVE_GROUP = 0x17 00016 }; 00017 00018 protected: 00019 CAddress group; 00020 EPacketIgmpType type; 00021 __time maxResponse; 00022 00023 public: 00024 CPacketIgmp( 00025 CAddress group, 00026 EPacketIgmpType type, 00027 __time maxResponse = 0 00028 ); 00029 virtual ~CPacketIgmp() { } 00030 00031 virtual inline EPacketType Type() { return PACKET_TYPE_IGMP; } 00032 virtual CPacket* Copy(); 00033 00034 inline CAddress Group() { return this->group; } 00035 inline EPacketIgmpType IgmpType() { return this->type; } 00036 inline __time MaxResponse() { return this->maxResponse; } 00037 };
Last updated: February 8, 2011