|
INET Framework for OMNeT++/OMNEST
|
00001 // 00002 // Copyright 2004 Andras Varga 00003 // 00004 // This library is free software, you can redistribute it and/or modify 00005 // it under the terms of the GNU Lesser General Public License 00006 // as published by the Free Software Foundation; 00007 // either version 2 of the License, or any later version. 00008 // The library is distributed in the hope that it will be useful, 00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00011 // See the GNU Lesser General Public License for more details. 00012 // 00013 00014 #ifndef __INET_TCPECHOAPP_H 00015 #define __INET_TCPECHOAPP_H 00016 00017 #include <omnetpp.h> 00018 #include "INETDefs.h" 00019 00020 00021 00026 class INET_API TCPEchoApp : public cSimpleModule 00027 { 00028 protected: 00029 simtime_t delay; 00030 double echoFactor; 00031 00032 long bytesRcvd; 00033 long bytesSent; 00034 00035 protected: 00036 virtual void sendDown(cMessage *msg); 00037 00038 protected: 00039 virtual void initialize(); 00040 virtual void handleMessage(cMessage *msg); 00041 virtual void finish(); 00042 }; 00043 00044 #endif 00045 00046