#include <SCTPAlg.h>
Public Member Functions | |
SCTPAlg () | |
virtual | ~SCTPAlg () |
virtual SCTPStateVariables * | createStateVariables () |
virtual void | established (bool active) |
virtual void | connectionClosed () |
virtual void | processTimer (cMessage *timer, SCTPEventCode &event) |
virtual void | sendCommandInvoked (IPvXAddress addr) |
virtual void | receivedDataAck (uint32 firstSeqAcked) |
virtual void | receivedDuplicateAck () |
virtual void | receivedAckForDataNotYetSent (uint32 seq) |
virtual void | sackSent () |
virtual void | dataSent (uint32 fromseq) |
Protected Attributes | |
SCTPAlgStateVariables * | state |
SCTPAlg::SCTPAlg | ( | ) |
SCTPAlg::~SCTPAlg | ( | ) | [virtual] |
Virtual dtor.
00031 { 00032 sctpEV3<<"Destructor SCTPAlg\n"; 00033 // Note: don't delete "state" here, it'll be deleted from SCTPAssociation 00034 }
SCTPStateVariables * SCTPAlg::createStateVariables | ( | ) | [virtual] |
Creates and returns a SCTPStateVariables object.
Implements SCTPAlgorithm.
00037 { 00038 ASSERT(state==NULL); 00039 state = new SCTPAlgStateVariables(); 00040 return state; 00041 }
void SCTPAlg::established | ( | bool | active | ) | [virtual] |
Implements SCTPAlgorithm.
00044 { 00045 if (active) 00046 { 00047 sctpEV3 << "\nCompleting connection: sending DATA\n"; 00048 } 00049 }
void SCTPAlg::connectionClosed | ( | ) | [virtual] |
void SCTPAlg::processTimer | ( | cMessage * | timer, | |
SCTPEventCode & | event | |||
) | [virtual] |
void SCTPAlg::sendCommandInvoked | ( | IPvXAddress | addr | ) | [virtual] |
Implements SCTPAlgorithm.
00061 { 00062 00063 sctpEV3<<"SCTPAlg: sendAll to "<<addr<<"\n"; 00064 assoc->sendAll(addr); 00065 }
void SCTPAlg::receivedDataAck | ( | uint32 | firstSeqAcked | ) | [virtual] |
void SCTPAlg::receivedDuplicateAck | ( | ) | [virtual] |
void SCTPAlg::receivedAckForDataNotYetSent | ( | uint32 | seq | ) | [virtual] |
Implements SCTPAlgorithm.
00079 { 00080 sctpEV3 << "ACK acks something not yet sent, sending immediate ACK\n"; 00081 00082 }
void SCTPAlg::sackSent | ( | ) | [virtual] |
void SCTPAlg::dataSent | ( | uint32 | fromseq | ) | [virtual] |
SCTPAlgStateVariables* SCTPAlg::state [protected] |
Referenced by createStateVariables(), and SCTPAlg().