INET Framework for OMNeT++/OMNEST
TCPSegment_m.h File Reference
#include <omnetpp.h>
#include <iostream>
#include "INETDefs.h"

Go to the source code of this file.

Classes

struct  TCPPayloadMessage
class  Sack
class  TCPOption
class  TCPSegment_Base

Defines

#define MSGC_VERSION   0x0402
#define TCP_HEADER_OCTETS   20

Typedefs

typedef cPacket * cPacketPtr

Enumerations

enum  TCPOptionNumbers {
  TCPOPTION_END_OF_OPTION_LIST = 0, TCPOPTION_NO_OPERATION = 1, TCPOPTION_MAXIMUM_SEGMENT_SIZE = 2, TCPOPTION_WINDOW_SCALE = 3,
  TCPOPTION_SACK_PERMITTED = 4, TCPOPTION_SACK = 5, TCPOPTION_TIMESTAMP = 8
}

Functions

std::ostream & operator<< (std::ostream &os, cPacketPtr msg)
void doPacking (cCommBuffer *b, cPacketPtr &msg)
void doUnpacking (cCommBuffer *b, cPacketPtr &msg)
void doPacking (cCommBuffer *b, TCPPayloadMessage &a)
void doUnpacking (cCommBuffer *b, TCPPayloadMessage &a)
void doPacking (cCommBuffer *b, Sack &obj)
void doUnpacking (cCommBuffer *b, Sack &obj)
void doPacking (cCommBuffer *b, TCPOption &obj)
void doUnpacking (cCommBuffer *b, TCPOption &obj)

Variables

const unsigned int TCP_MAX_HEADER_OCTETS = 60
const unsigned int MAX_SACK_ENTRIES = 4

Define Documentation

#define MSGC_VERSION   0x0402

Definition at line 11 of file TCPSegment_m.h.


Typedef Documentation

typedef cPacket* cPacketPtr

Definition at line 29 of file TCPSegment_m.h.


Enumeration Type Documentation

Enum generated from transport/tcp/TCPSegment.msg by opp_msgc.

 enum TCPOptionNumbers
 {
     TCPOPTION_END_OF_OPTION_LIST = 0;                   
     TCPOPTION_NO_OPERATION = 1;                         
     TCPOPTION_MAXIMUM_SEGMENT_SIZE = 2;                 
     TCPOPTION_WINDOW_SCALE = 3;                         
     TCPOPTION_SACK_PERMITTED = 4;                       
     TCPOPTION_SACK = 5;
     TCPOPTION_TIMESTAMP = 8;
 };
 
Enumerator:
TCPOPTION_END_OF_OPTION_LIST 
TCPOPTION_NO_OPERATION 
TCPOPTION_MAXIMUM_SEGMENT_SIZE 
TCPOPTION_WINDOW_SCALE 
TCPOPTION_SACK_PERMITTED 
TCPOPTION_SACK 
TCPOPTION_TIMESTAMP 

Definition at line 83 of file TCPSegment_m.h.


Function Documentation

void doPacking ( cCommBuffer *  b,
cPacketPtr msg 
) [inline]

Definition at line 36 of file TCPSegment_m.h.

{msg->parsimPack(b);}
void doPacking ( cCommBuffer *  b,
TCPPayloadMessage a 
)
void doPacking ( cCommBuffer *  b,
Sack obj 
) [inline]

Definition at line 145 of file TCPSegment_m.h.

{obj.parsimPack(b);}
void doPacking ( cCommBuffer *  b,
TCPOption obj 
) [inline]

Definition at line 194 of file TCPSegment_m.h.

{obj.parsimPack(b);}
void doUnpacking ( cCommBuffer *  b,
cPacketPtr msg 
) [inline]

Definition at line 37 of file TCPSegment_m.h.

{msg->parsimUnpack(b);}
void doUnpacking ( cCommBuffer *  b,
TCPPayloadMessage a 
)
void doUnpacking ( cCommBuffer *  b,
Sack obj 
) [inline]

Definition at line 146 of file TCPSegment_m.h.

{obj.parsimUnpack(b);}
void doUnpacking ( cCommBuffer *  b,
TCPOption obj 
) [inline]

Definition at line 195 of file TCPSegment_m.h.

{obj.parsimUnpack(b);}
std::ostream& operator<< ( std::ostream &  os,
cPacketPtr  msg 
) [inline]

Definition at line 31 of file TCPSegment_m.h.

    {
        return os << "(" << msg->getClassName() << ") " << msg->getName() << ": " << msg->info();
    }

Variable Documentation

const unsigned int MAX_SACK_ENTRIES = 4

Definition at line 27 of file TCPSegment_m.h.

Referenced by TCPConnection::addSacks().

const unsigned int TCP_MAX_HEADER_OCTETS = 60

Definition at line 24 of file TCPSegment_m.h.

Referenced by TCPConnection::sendToIP(), and TCPSerializer::serialize().