Alex Bikfalvi
SimStream Documentation
LayerIpRoute.h
00001 #pragma once 00002 00003 #include "Layer.h" 00004 #include "Route.h" 00005 #include "PacketIp.h" 00006 00007 class CLayerIpRoute : public CLayer 00008 { 00009 private: 00010 CAddress address; 00011 CRoute* route; 00012 00013 // Delegates 00014 Delegate2<CLayerIpRoute, void, __uint32, CPacketIp*>* delegateRecv; 00015 00016 // Events 00017 Event2<void, __uint32, CPacketIp*>* eventSend; 00018 00019 public: 00020 CLayerIpRoute( 00021 CSimHandler* sim, 00022 CAddress address, 00023 CRoute* route 00024 ); 00025 virtual ~CLayerIpRoute(); 00026 00027 inline IDelegate2<void, __uint32, CPacketIp*>* 00028 DelegateRecv() { return this->delegateRecv; } 00029 00030 inline Event2<void, __uint32, CPacketIp*>* 00031 EventSend() { return this->eventSend; } 00032 00033 virtual void Finalize() { } 00034 00035 private: 00036 void Recv(__uint32 entry, CPacketIp* packet); 00037 };
Last updated: February 8, 2011