Lines Matching refs:payload
528 bool HdcServer::ServerSessionHandshake(HSession hSession, uint8_t *payload, int payloadSize)
531 string s = string(reinterpret_cast<char *>(payload), payloadSize);
535 WRITE_LOG(LOG_DEBUG, "handshake.banner:%s, payload:%s(%d)", handshake.banner.c_str(), s.c_str(), payloadSize);
561 bool HdcServer::FetchCommand(HSession hSession, const uint32_t channelId, const uint16_t command, uint8_t *payload,
567 ret = ServerSessionHandshake(hSession, payload, payloadSize);
594 sfc->EchoClientRaw(hChannel, payload, payloadSize);
598 MessageLevel level = static_cast<MessageLevel>(*payload);
599 string s(reinterpret_cast<char *>(payload + 1), payloadSize - 1);
610 if (*payload != 0) {
611 --(*payload);
612 Send(hSession->sessionId, channelId, CMD_KERNEL_CHANNEL_CLOSE, payload, 1);
623 pdiNew->forwardDirection = (reinterpret_cast<char *>(payload))[0] == '1';
624 pdiNew->taskString = reinterpret_cast<char *>(payload);
643 sfc->SendCommandToClient(hChannel, command, payload, payloadSize);
652 ret = DispatchTaskData(hSessionByQuery, channelId, command, payload, payloadSize);
973 const uint16_t command, uint8_t *payload, const int payloadSize)
981 ret = TaskCommandDispatch<HdcHostUnity>(hTaskInfo, TYPE_UNITY, command, payload, payloadSize);
990 ret = TaskCommandDispatch<HdcFile>(hTaskInfo, TASK_FILE, command, payload, payloadSize);
999 ret = TaskCommandDispatch<HdcHostForward>(hTaskInfo, TASK_FORWARD, command, payload, payloadSize);
1006 ret = TaskCommandDispatch<HdcHostApp>(hTaskInfo, TASK_APP, command, payload, payloadSize);
1017 ret = TaskCommandDispatch<HostUpdater>(hTaskInfo, TASK_FLASHD, command, payload, payloadSize);