Alex Bikfalvi
SimStream Documentation
LayerIp.h
00001 #pragma once 00002 00003 #include "Layer.h" 00004 #include "PacketIp.h" 00005 00006 class CLayerIp : public CLayer 00007 { 00008 private: 00009 Delegate2<CLayerIp, void, __uint32, CPacket*>* delegateRecv; 00010 Event2<void, __uint32, CPacketIp*>* eventRecv; 00011 00012 Delegate2<CLayerIp, void, __uint32, CPacketIp*>* delegateSend; 00013 Event2<void, __uint32, CPacket*>* eventSend; 00014 00015 public: 00016 CLayerIp(CSimHandler* sim); 00017 virtual ~CLayerIp(); 00018 00019 inline IDelegate2<void, __uint32, CPacket*>* DelegateRecv() { return this->delegateRecv; } 00020 inline Event2<void, __uint32, CPacketIp*>* EventRecv() { return this->eventRecv; } 00021 00022 inline IDelegate2<void, __uint32, CPacketIp*>* DelegateSend() { return this->delegateSend; } 00023 inline Event2<void, __uint32, CPacket*>* EventSend() { return this->eventSend; } 00024 00025 virtual void Finalize() { } 00026 00027 private: 00028 void Recv(__uint32 entry, CPacket* packet); 00029 void Send(__uint32 entry, CPacketIp* packet); 00030 };
Last updated: February 8, 2011