|
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_TCPSINKAPP_H 00015 #define __INET_TCPSINKAPP_H 00016 00017 #include <omnetpp.h> 00018 #include "INETDefs.h" 00019 00020 00021 00026 class INET_API TCPSinkApp : public cSimpleModule 00027 { 00028 protected: 00029 long bytesRcvd; 00030 00031 protected: 00032 virtual void initialize(); 00033 virtual void handleMessage(cMessage *msg); 00034 virtual void finish(); 00035 }; 00036 00037 #endif 00038 00039