Lines Matching refs:msg
52 PRINT("[Compat]HECI receive %d bytes (msg type 0x%02x)\n", len, buffer[0]);
59 LMS_OPEN_CONNECTION_EX_MESSAGE *msg =
63 switch (msg->Protocol) {
73 if ((msg->Flags & HOSTNAME_BIT) != 0) {
75 msg->ConnectionId,
76 msg->Host,
77 ntohs(msg->HostPort));
80 (const char *)msg->Host,
81 ntohs(msg->HostPort),
85 msg->ConnectionId,
86 inet_ntoa(*((struct in_addr *)msg->Host)),
87 ntohs(msg->HostPort));
90 inet_ntoa(*((struct in_addr *)msg->Host)),
91 ntohs(msg->HostPort),
101 c->SetRecipientChannel(msg->ConnectionId);
106 _openChannels[msg->ConnectionId] = c;
115 LMS_CLOSE_CONNECTION_MESSAGE *msg =
118 PRINT("[Compat]received close connection msg from HECI for connection %d\n", msg->ConnectionId);
122 ChannelMap::iterator it = _openChannels.find(msg->ConnectionId);
132 LMS_SEND_DATA_MESSAGE *msg =
137 ChannelMap::iterator it = _openChannels.find(msg->ConnectionId);
139 PRINT("[Compat]sending %d bytes from HECI connection %d to socket %d\n", ntohs(msg->DataLength), msg->ConnectionId, it->second->GetSocket());
140 if (-1 == _send(it->second->GetSocket(), (char *)msg->Data, ntohs(msg->DataLength), error)) {