INET Framework for OMNeT++/OMNEST
|
A simulated browser module for OMNeT++ simulations. More...
#include <HttpBrowserBase.h>
Classes | |
struct | BrowseEvent |
Public Member Functions | |
HttpBrowserBase () | |
virtual | ~HttpBrowserBase () |
Public Member Functions inherited from inet::httptools::HttpNodeBase | |
HttpNodeBase () | |
Public Member Functions inherited from inet::ILifecycle | |
virtual | ~ILifecycle () |
Protected Types | |
typedef std::deque< BrowseEvent > | BrowseEventsList |
typedef std::deque< HttpRequestMessage * > | HttpRequestQueue |
Protected Member Functions | |
virtual void | initialize (int stage) override |
virtual int | numInitStages () const override |
virtual void | finish () override |
virtual void | handleMessage (cMessage *msg) override=0 |
void | handleDataMessage (cMessage *msg) |
void | handleSelfMessages (cMessage *msg) |
void | handleSelfActivityStart () |
void | handleSelfStartSession () |
void | handleSelfNextMessage () |
void | handleSelfScriptedEvent () |
void | handleSelfDelayedRequestMessage (cMessage *msg) |
void | scheduleNextBrowseEvent () |
virtual void | sendRequestToServer (BrowseEvent be)=0 |
virtual void | sendRequestToServer (HttpRequestMessage *request)=0 |
virtual void | sendRequestToRandomServer ()=0 |
virtual void | sendRequestsToServer (std::string www, HttpRequestQueue queue)=0 |
HttpRequestMessage * | generatePageRequest (std::string www, std::string page, bool bad=false, int size=0) |
HttpRequestMessage * | generateRandomPageRequest (std::string www, bool bad=false, int size=0) |
HttpRequestMessage * | generateResourceRequest (std::string www, std::string resource="", int serial=0, bool bad=false, int size=0) |
void | readScriptedEvents (const char *filename) |
Protected Member Functions inherited from inet::httptools::HttpNodeBase | |
void | sendDirectToModule (HttpNodeBase *receiver, cPacket *packet, simtime_t constdelay=0.0, rdObject *rd=nullptr) |
double | transmissionDelay (cPacket *packet) |
void | logRequest (const HttpRequestMessage *httpRequest) |
void | logResponse (const HttpReplyMessage *httpResponse) |
void | logEntry (std::string line) |
std::string | formatHttpRequestShort (const HttpRequestMessage *httpRequest) |
std::string | formatHttpResponseShort (const HttpReplyMessage *httpResponse) |
std::string | formatHttpRequestLong (const HttpRequestMessage *httpRequest) |
std::string | formatHttpResponseLong (const HttpReplyMessage *httpResponse) |
virtual bool | handleOperationStage (LifecycleOperation *operation, int stage, IDoneCallback *doneCallback) override |
Perform one stage of a lifecycle operation. More... | |
A simulated browser module for OMNeT++ simulations.
A part of HttpTools.
The component is designed to plug into the existing INET StandardHost module as a tcpApp. See the INET documentation and examples for details. It can also be used with the simplified DirectHost, which only supports direct message passing.
The browser can operate in two modes:
The browser can operate in two communications modes:
|
protected |
|
protected |
inet::httptools::HttpBrowserBase::HttpBrowserBase | ( | ) |
|
virtual |
|
overrideprotectedvirtual |
Reimplemented in inet::httptools::HttpBrowser, and inet::httptools::HttpBrowserDirect.
Referenced by inet::httptools::HttpBrowserDirect::finish(), and inet::httptools::HttpBrowser::finish().
|
protected |
Referenced by generateRandomPageRequest(), inet::httptools::HttpBrowserDirect::sendRequestToServer(), and inet::httptools::HttpBrowser::sendRequestToServer().
|
protected |
Referenced by inet::httptools::HttpBrowserDirect::sendRequestToRandomServer(), and inet::httptools::HttpBrowser::sendRequestToRandomServer().
|
protected |
Referenced by handleDataMessage().
|
protected |
Referenced by inet::httptools::HttpBrowserDirect::handleMessage(), and inet::httptools::HttpBrowser::socketDataArrived().
|
overrideprotectedpure virtual |
Implemented in inet::httptools::HttpBrowser, and inet::httptools::HttpBrowserDirect.
|
protected |
Referenced by handleSelfMessages().
|
protected |
Referenced by handleSelfMessages().
|
protected |
Referenced by inet::httptools::HttpBrowserDirect::handleMessage(), and inet::httptools::HttpBrowser::handleMessage().
|
protected |
Referenced by handleSelfMessages().
|
protected |
Referenced by handleSelfMessages().
|
protected |
Referenced by handleSelfMessages().
|
overrideprotectedvirtual |
Reimplemented from inet::httptools::HttpNodeBase.
Reimplemented in inet::httptools::HttpBrowser, and inet::httptools::HttpBrowserDirect.
Referenced by inet::httptools::HttpBrowserDirect::initialize(), and inet::httptools::HttpBrowser::initialize().
|
inlineoverrideprotectedvirtual |
Reimplemented from inet::httptools::HttpNodeBase.
Reimplemented in inet::httptools::HttpBrowser, and inet::httptools::HttpBrowserDirect.
|
protected |
Referenced by initialize().
|
protected |
Referenced by handleSelfNextMessage(), and handleSelfStartSession().
|
protectedpure virtual |
Implemented in inet::httptools::HttpBrowser, and inet::httptools::HttpBrowserDirect.
Referenced by handleDataMessage().
|
protectedpure virtual |
Implemented in inet::httptools::HttpBrowser, and inet::httptools::HttpBrowserDirect.
Referenced by handleSelfNextMessage(), and handleSelfStartSession().
|
protectedpure virtual |
Implemented in inet::httptools::HttpBrowser, and inet::httptools::HttpBrowserDirect.
Referenced by handleSelfDelayedRequestMessage(), and handleSelfScriptedEvent().
|
protectedpure virtual |
Implemented in inet::httptools::HttpBrowser, and inet::httptools::HttpBrowserDirect.
|
protected |
Referenced by handleSelfActivityStart(), and scheduleNextBrowseEvent().
|
protected |
Referenced by handleSelfScriptedEvent(), and readScriptedEvents().
|
protected |
Referenced by initialize().
|
protected |
Referenced by initialize(), readScriptedEvents(), inet::httptools::HttpBrowserDirect::sendRequestsToServer(), inet::httptools::HttpBrowser::sendRequestsToServer(), inet::httptools::HttpBrowserDirect::sendRequestToRandomServer(), inet::httptools::HttpBrowser::sendRequestToRandomServer(), inet::httptools::HttpBrowserDirect::sendRequestToServer(), and inet::httptools::HttpBrowser::sendRequestToServer().
|
protected |
|
protected |
Referenced by finish(), handleDataMessage(), and initialize().
|
protected |
Referenced by finish(), handleDataMessage(), and initialize().
|
protected |
Referenced by finish(), generatePageRequest(), and initialize().
|
protected |
Referenced by finish(), handleDataMessage(), and initialize().
|
protected |
Referenced by finish(), generateResourceRequest(), and initialize().
|
protected |
|
protected |
Referenced by handleSelfActivityStart(), initialize(), scheduleNextBrowseEvent(), and ~HttpBrowserBase().
|
protected |
Referenced by initialize(), scheduleNextBrowseEvent(), and ~HttpBrowserBase().
|
protected |
Referenced by handleSelfActivityStart(), initialize(), scheduleNextBrowseEvent(), and ~HttpBrowserBase().
|
protected |
|
protected |
Referenced by handleSelfStartSession(), initialize(), and ~HttpBrowserBase().
|
protected |
Referenced by generatePageRequest(), generateResourceRequest(), initialize(), and ~HttpBrowserBase().
|
protected |
Referenced by handleSelfNextMessage(), handleSelfStartSession(), initialize(), and scheduleNextBrowseEvent().
|
protected |
|
protected |
Referenced by initialize().
|
protected |
Referenced by finish(), handleSelfNextMessage(), handleSelfScriptedEvent(), handleSelfStartSession(), and initialize().
|
protected |
Referenced by finish(), handleDataMessage(), and initialize().
|
protected |
Referenced by finish(), generateResourceRequest(), and initialize().