Пример #1
0
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
}
Пример #2
0
void McuMessageHandler::SendPacket(StruMcuPacket *packet)
{
    if(SendContent(packet->packet) < 0)
    {
        LogUtility::Log(LOG_LEVEL_ERROR, "McuMessageHandler::SendPacket failed to send packet");
    }
    
    return;
}
Пример #3
0
void CWebSocket::SendContent(LPCSTR szStdResponse, const CString& rstr)
{
	CStringA strA(wc2utf8(rstr));
	SendContent(szStdResponse, strA, strA.GetLength());
}