#include <SCTPSendStream.h>
Public Member Functions | |
SCTPSendStream (uint16 id) | |
~SCTPSendStream () | |
cQueue * | getStreamQ () |
cQueue * | getUnorderedStreamQ () |
uint32 | getNextStreamSeqNum () |
void | setNextStreamSeqNum (uint16 num) |
uint16 | getStreamId () |
void | setStreamId (uint16 id) |
void | deleteQueue () |
Protected Attributes | |
uint16 | streamId |
uint16 | nextStreamSeqNum |
cQueue * | streamQ |
cQueue * | uStreamQ |
int32 | ssn |
SCTPSendStream::SCTPSendStream | ( | uint16 | id | ) |
00021 { 00022 00023 streamId = id; 00024 nextStreamSeqNum = 0; 00025 char str[50]; 00026 sprintf(str, "OrderedSendQueue ID %d",id); 00027 streamQ = new cQueue(str); 00028 sprintf(str, "UnorderedSendQueue ID %d",id); 00029 uStreamQ = new cQueue(str); 00030 }
SCTPSendStream::~SCTPSendStream | ( | ) |
cQueue* SCTPSendStream::getStreamQ | ( | ) | [inline] |
Referenced by SCTPAssociation::dequeueOutboundDataMsg(), SCTPAssociation::peekOutboundDataMsg(), SCTPAssociation::process_SEND(), and SCTPAssociation::streamScheduler().
00046 {return streamQ;};
cQueue* SCTPSendStream::getUnorderedStreamQ | ( | ) | [inline] |
Referenced by SCTPAssociation::dequeueOutboundDataMsg(), SCTPAssociation::peekOutboundDataMsg(), SCTPAssociation::process_SEND(), and SCTPAssociation::streamScheduler().
00047 {return uStreamQ;};
uint32 SCTPSendStream::getNextStreamSeqNum | ( | ) | [inline] |
void SCTPSendStream::setNextStreamSeqNum | ( | uint16 | num | ) | [inline] |
uint16 SCTPSendStream::getStreamId | ( | ) | [inline] |
void SCTPSendStream::setStreamId | ( | uint16 | id | ) | [inline] |
void SCTPSendStream::deleteQueue | ( | ) |
Referenced by ~SCTPSendStream().
00038 { 00039 SCTPDataMsg* datMsg; 00040 SCTPSimpleMessage* smsg; 00041 int32 count = streamQ->length(); 00042 while (!streamQ->empty()) 00043 { 00044 datMsg = check_and_cast<SCTPDataMsg*>(streamQ->pop()); 00045 smsg = check_and_cast<SCTPSimpleMessage*>(datMsg->decapsulate()); 00046 delete smsg; 00047 delete datMsg; 00048 count--; 00049 } 00050 while (!uStreamQ->empty()) 00051 { 00052 datMsg = check_and_cast<SCTPDataMsg*>(uStreamQ->pop()); 00053 smsg = check_and_cast<SCTPSimpleMessage*>(datMsg->decapsulate()); 00054 delete smsg; 00055 delete datMsg; 00056 } 00057 delete streamQ; 00058 delete uStreamQ; 00059 }
uint16 SCTPSendStream::streamId [protected] |
Referenced by getStreamId(), SCTPSendStream(), and setStreamId().
uint16 SCTPSendStream::nextStreamSeqNum [protected] |
Referenced by getNextStreamSeqNum(), SCTPSendStream(), and setNextStreamSeqNum().
cQueue* SCTPSendStream::streamQ [protected] |
Referenced by deleteQueue(), getStreamQ(), and SCTPSendStream().
cQueue* SCTPSendStream::uStreamQ [protected] |
Referenced by deleteQueue(), getUnorderedStreamQ(), and SCTPSendStream().
int32 SCTPSendStream::ssn [protected] |