A simulated browser module for OMNeT++ simulations.
More...
#include <HttpBrowserDirect.h>
|
virtual void | initialize (int stage) override |
|
virtual void | finish () override |
|
virtual void | handleMessage (cMessage *msg) override |
|
int | numInitStages () const override |
|
virtual void | sendRequestToServer (BrowseEvent be) override |
|
virtual void | sendRequestToServer (HttpRequestMessage *request) override |
|
virtual void | sendRequestToRandomServer () override |
|
virtual void | sendRequestsToServer (std::string www, HttpRequestQueue queue) override |
|
void | handleDataMessage (cMessage *msg) |
|
void | handleSelfMessages (cMessage *msg) |
|
void | handleSelfActivityStart () |
|
void | handleSelfStartSession () |
|
void | handleSelfNextMessage () |
|
void | handleSelfScriptedEvent () |
|
void | handleSelfDelayedRequestMessage (cMessage *msg) |
|
void | scheduleNextBrowseEvent () |
|
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) |
|
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.
This module implements direct message passing between modules.
- See also
- HttpBrowserBase
-
HttpBrowser
- Author
- Kristjan V. Jonsson (krist.nosp@m.janv.nosp@m.j@gma.nosp@m.il.c.nosp@m.om)
void inet::httptools::HttpBrowserDirect::finish |
( |
| ) |
|
|
overrideprotectedvirtual |
void inet::httptools::HttpBrowserDirect::handleMessage |
( |
cMessage * |
msg | ) |
|
|
overrideprotectedvirtual |
void inet::httptools::HttpBrowserDirect::initialize |
( |
int |
stage | ) |
|
|
overrideprotectedvirtual |
Reimplemented from inet::httptools::HttpBrowserBase.
29 EV_DEBUG <<
"Initializing HTTP direct browser component - stage " << stage << endl;
Local initializations.
Definition: InitStages.h:35
int inet::httptools::HttpBrowserDirect::numInitStages |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
void inet::httptools::HttpBrowserDirect::sendRequestsToServer |
( |
std::string |
www, |
|
|
HttpRequestQueue |
queue |
|
) |
| |
|
overrideprotectedvirtual |
Implements inet::httptools::HttpBrowserBase.
84 if (serverModule ==
nullptr) {
85 EV_ERROR <<
"Failed to get server module " << www << endl;
86 while (!queue.empty()) {
87 HttpRequestMessage *msg = queue.back();
93 while (!queue.empty()) {
94 HttpRequestMessage *msg = queue.back();
void inet::httptools::HttpBrowserDirect::sendRequestToRandomServer |
( |
| ) |
|
|
overrideprotectedvirtual |
Implements inet::httptools::HttpBrowserBase.
72 if (serverModule ==
nullptr) {
73 EV_ERROR <<
"Failed to get a random server module" << endl;
76 EV_DEBUG <<
"Sending request randomly to " << serverModule->getHostName() << endl;
void inet::httptools::HttpBrowserDirect::sendRequestToServer |
( |
BrowseEvent |
be | ) |
|
|
overrideprotectedvirtual |
void inet::httptools::HttpBrowserDirect::sendRequestToServer |
( |
HttpRequestMessage * |
request | ) |
|
|
overrideprotectedvirtual |
Implements inet::httptools::HttpBrowserBase.
59 if (serverModule ==
nullptr) {
60 EV_ERROR <<
"Failed to get server module for " << request->targetUrl() << endl;
64 EV_DEBUG <<
"Sending request to " << serverModule->getHostName() << endl;
The documentation for this class was generated from the following files: