61 getParentModule()->getSubmodule(
"packetParser"));
64 getParentModule()->getSubmodule(
"applicationParser"));
86 EV <<
"[RealworldConnector::handleMessage()]\n"
87 <<
" Message from outside. Queue length = "
95 char* buf = packet.
data;
96 uint32_t len = packet.
length;
97 sockaddr* addr = packet.
addr;
98 socklen_t addrlen = packet.
addrlen;
99 cMessage *parsedPacket =
decapsulate(buf, len, addr, addrlen);
111 EV <<
"[RealworldConnector::handleMessage()]\n"
112 <<
" Received " << msg <<
" for transmission"
127 socklen_t addrlen = 0;
128 char* buf =
encapsulate(msg, &length, &addr, &addrlen);
134 EV <<
"[RealworldConnector::transmitToNetwork()]\n"
135 <<
" Error sending Packet, sendBytes returned " << nByte
140 EV <<
"[RealworldConnector::transmitToNetwork()]\n"
141 <<
" Packet (size = " << nByte <<
") sent"
156 if (ev.isDisabled()) {
158 getDisplayString().setTagArg(
"t",0,
"");
164 sprintf(buf+strlen(buf),
"\nerrin:%ld errout:%ld",
numRcvError,
167 getDisplayString().setTagArg(
"t",0,buf);