Public Member Functions | Protected Attributes

SCTPAlg Class Reference

#include <SCTPAlg.h>

Inheritance diagram for SCTPAlg:
SCTPAlgorithm

List of all members.

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 (SCTPPathVariables *path)
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

Detailed Description

Definition at line 36 of file SCTPAlg.h.


Constructor & Destructor Documentation

SCTPAlg::SCTPAlg (  ) 

Ctor.

Definition at line 25 of file SCTPAlg.cc.

                 : SCTPAlgorithm()
{
    state = NULL;
}

SCTPAlg::~SCTPAlg (  )  [virtual]

Virtual dtor.

Definition at line 30 of file SCTPAlg.cc.

{
    sctpEV3 << "Destructor SCTPAlg" << endl;
    // Note: don't delete "state" here, it'll be deleted from SCTPAssociation
}


Member Function Documentation

void SCTPAlg::connectionClosed (  )  [virtual]

Implements SCTPAlgorithm.

Definition at line 50 of file SCTPAlg.cc.

{
}

SCTPStateVariables * SCTPAlg::createStateVariables (  )  [virtual]

Creates and returns a SCTPStateVariables object.

Implements SCTPAlgorithm.

Definition at line 36 of file SCTPAlg.cc.

{
    ASSERT(state == NULL);
    state = new SCTPAlgStateVariables();
    return(state);
}

void SCTPAlg::dataSent ( uint32  fromseq  )  [virtual]

Implements SCTPAlgorithm.

Definition at line 82 of file SCTPAlg.cc.

{
}

void SCTPAlg::established ( bool  active  )  [virtual]

Implements SCTPAlgorithm.

Definition at line 43 of file SCTPAlg.cc.

{
    if (active) {
        sctpEV3 << "Completing connection: sending DATA" << endl;
    }
}

void SCTPAlg::processTimer ( cMessage *  timer,
SCTPEventCode &  event 
) [virtual]

Implements SCTPAlgorithm.

Definition at line 54 of file SCTPAlg.cc.

{
    sctpEV3 << "no extra timers in this SCTP variant" << endl;
}

void SCTPAlg::receivedAckForDataNotYetSent ( uint32  seq  )  [virtual]

Implements SCTPAlgorithm.

Definition at line 73 of file SCTPAlg.cc.

{
    sctpEV3 << "ACK acks something not yet sent, sending immediate ACK" << endl;
}

void SCTPAlg::receivedDataAck ( uint32  firstSeqAcked  )  [virtual]

Implements SCTPAlgorithm.

Definition at line 64 of file SCTPAlg.cc.

{
}

void SCTPAlg::receivedDuplicateAck (  )  [virtual]

Implements SCTPAlgorithm.

Definition at line 68 of file SCTPAlg.cc.

{
    sctpEV3 << "Duplicate ACK #" << endl;
}

void SCTPAlg::sackSent (  )  [virtual]

Implements SCTPAlgorithm.

Definition at line 78 of file SCTPAlg.cc.

{
}

void SCTPAlg::sendCommandInvoked ( SCTPPathVariables *  path  )  [virtual]

Implements SCTPAlgorithm.

Definition at line 59 of file SCTPAlg.cc.

{
        assoc->sendOnPath(path);
}


Member Data Documentation

Definition at line 39 of file SCTPAlg.h.

Referenced by createStateVariables(), and SCTPAlg().


The documentation for this class was generated from the following files: