Alex Bikfalvi
You are here: Home > Projects > SimStream > Documentation
00001 #include "Headers.h" 00002 #include "StreamEncoderFrame.h" 00003 #include "PacketStreamFrame.h" 00004 00005 CStreamEncoderFrame::CStreamEncoderFrame( 00006 IDelegate2<void, CAddress, CPacketStream*>* delegateSend 00007 ) : CStreamEncoder(delegateSend) 00008 { 00009 } 00010 00011 void CStreamEncoderFrame::Encode(CAddress address, CStreamFrame frame) 00012 { 00013 // Encode frame in a packet 00014 CPacketStreamFrame* packet = new CPacketStreamFrame(frame); 00015 00016 // Send the packet through the delegate 00017 (*this->delegateSend)(address, packet); 00018 } 00019
Last updated: February 8, 2011