Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef __INET_TCPGENERICSRVAPP_H
00015 #define __INET_TCPGENERICSRVAPP_H
00016
00017 #include <omnetpp.h>
00018 #include "INETDefs.h"
00019
00020
00021
00028 class INET_API TCPGenericSrvApp : public cSimpleModule
00029 {
00030 protected:
00031 simtime_t delay;
00032 simtime_t maxMsgDelay;
00033
00034 long msgsRcvd;
00035 long msgsSent;
00036 long bytesRcvd;
00037 long bytesSent;
00038
00039 protected:
00040 virtual void sendBack(cMessage *msg);
00041 virtual void sendOrSchedule(cMessage *msg, simtime_t delay);
00042
00043 protected:
00044 virtual void initialize();
00045 virtual void handleMessage(cMessage *msg);
00046 virtual void finish();
00047 };
00048
00049 #endif
00050
00051