INET Framework for OMNeT++/OMNEST
inet::GenericAppMsg Class Reference

Class generated from inet/applications/tcpapp/GenericAppMsg.msg:37 by nedtool. More...

#include <GenericAppMsg_m.h>

Inheritance diagram for inet::GenericAppMsg:

Public Member Functions

 GenericAppMsg (const char *name=nullptr, short kind=0)
 
 GenericAppMsg (const GenericAppMsg &other)
 
virtual ~GenericAppMsg ()
 
GenericAppMsgoperator= (const GenericAppMsg &other)
 
virtual GenericAppMsgdup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual int getExpectedReplyLength () const
 
virtual void setExpectedReplyLength (int expectedReplyLength)
 
virtual double getReplyDelay () const
 
virtual void setReplyDelay (double replyDelay)
 
virtual bool getServerClose () const
 
virtual void setServerClose (bool serverClose)
 

Protected Member Functions

bool operator== (const GenericAppMsg &)
 

Protected Attributes

int expectedReplyLength
 
double replyDelay
 
bool serverClose
 

Private Member Functions

void copy (const GenericAppMsg &other)
 

Detailed Description

Class generated from inet/applications/tcpapp/GenericAppMsg.msg:37 by nedtool.

//
// Message class for generic request-reply style applications.
// The client sends a ~GenericAppMsg which contains the number of
// bytes the client wants the server to send back as reply.
//
// This way intelligence (behaviour specific to the modelled application,
// e.g. HTTP, SMB, database protocol) needs only to be present in
// the client, and the server model can be kept simple and dumb.
//
// @see ~TCPGenericSrvApp, TCPGenericCliAppBase (C++ only)
//
packet GenericAppMsg
{
    int expectedReplyLength; // in bytes
    double replyDelay;       // reply after this many seconds
    bool serverClose;        // with TCP: if true, server should close the
                             // connection after sending the reply
}

Constructor & Destructor Documentation

inet::GenericAppMsg::GenericAppMsg ( const char *  name = nullptr,
short  kind = 0 
)
inet::GenericAppMsg::GenericAppMsg ( const GenericAppMsg other)
virtual inet::GenericAppMsg::~GenericAppMsg ( )
virtual

Member Function Documentation

void inet::GenericAppMsg::copy ( const GenericAppMsg other)
private
virtual GenericAppMsg* inet::GenericAppMsg::dup ( ) const
inlineoverridevirtual
79 {return new GenericAppMsg(*this);}
GenericAppMsg(const char *name=nullptr, short kind=0)
virtual int inet::GenericAppMsg::getExpectedReplyLength ( ) const
virtual
virtual double inet::GenericAppMsg::getReplyDelay ( ) const
virtual
virtual bool inet::GenericAppMsg::getServerClose ( ) const
virtual
GenericAppMsg& inet::GenericAppMsg::operator= ( const GenericAppMsg other)
bool inet::GenericAppMsg::operator== ( const GenericAppMsg )
protected
virtual void inet::GenericAppMsg::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual

Referenced by inet::doParsimPacking().

virtual void inet::GenericAppMsg::parsimUnpack ( omnetpp::cCommBuffer *  b)
overridevirtual

Referenced by inet::doParsimUnpacking().

virtual void inet::GenericAppMsg::setExpectedReplyLength ( int  expectedReplyLength)
virtual
virtual void inet::GenericAppMsg::setReplyDelay ( double  replyDelay)
virtual
virtual void inet::GenericAppMsg::setServerClose ( bool  serverClose)
virtual

Member Data Documentation

int inet::GenericAppMsg::expectedReplyLength
protected
double inet::GenericAppMsg::replyDelay
protected
bool inet::GenericAppMsg::serverClose
protected

The documentation for this class was generated from the following file: