Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef __INET_TCPRECEIVEQUEUE_OLD_H
00019 #define __INET_TCPRECEIVEQUEUE_OLD_H
00020
00021 #include <omnetpp.h>
00022 #include "TCPConnection_old.h"
00023
00024 class TCPSegment;
00025 class TCPCommand;
00026
00027 namespace tcp_old {
00028
00029
00047 class INET_API TCPReceiveQueue : public cPolymorphic
00048 {
00049 protected:
00050 TCPConnection *conn;
00051
00052 public:
00056 TCPReceiveQueue() {conn=NULL;}
00057
00061 virtual ~TCPReceiveQueue() {}
00062
00066 virtual void setConnection(TCPConnection *_conn) {conn = _conn;}
00067
00071 virtual void init(uint32 startSeq) = 0;
00072
00080 virtual uint32 insertBytesFromSegment(TCPSegment *tcpseg) = 0;
00081
00088 virtual cPacket *extractBytesUpTo(uint32 seq) = 0;
00089
00090 };
00091
00092 }
00093 #endif
00094
00095