void CWebSocket::SendContent(LPCSTR szStdResponse, const CString& rstr) { #ifdef _UNICODE CStringA strA(wc2utf8(rstr)); SendContent(szStdResponse, strA, strA.GetLength()); #else SendContent(szStdResponse, rstr, rstr.GetLength()); #endif }
void McuMessageHandler::SendPacket(StruMcuPacket *packet) { if(SendContent(packet->packet) < 0) { LogUtility::Log(LOG_LEVEL_ERROR, "McuMessageHandler::SendPacket failed to send packet"); } return; }
void CWebSocket::SendContent(LPCSTR szStdResponse, const CString& rstr) { CStringA strA(wc2utf8(rstr)); SendContent(szStdResponse, strA, strA.GetLength()); }