Thread 中讨论的其他器件:CC3200
当我的客户端从 Chrome 浏览器尝试连接在 CC3200中运行的 WebSocket 服务器时、它会失败并抛出错误。
错误消息未定义。 它只发生在某个时候。
有人之前是否曾遇到过此问题?
注意:它的当前 SDK 和最新 Service Pack、
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
当我的客户端从 Chrome 浏览器尝试连接在 CC3200中运行的 WebSocket 服务器时、它会失败并抛出错误。
错误消息未定义。 它只发生在某个时候。
有人之前是否曾遇到过此问题?
注意:它的当前 SDK 和最新 Service Pack、
e2e.ti.com/.../Wireshark_5F00_capture_5F00_connect_5F00_error.zipWireshark日志
您好、Partha、
WS_HandshakeHash 实现中似乎存在错误。
SHA1结果始终为160位(20B)且为二进制(因此"strlen"错误)。
以下是固定代码。 请尝试。
int WS_HandshakeHash (char * InKey、char * OutKey、char * EncOutKey)
{
sha1 ((unsigned char *) InKey、(unsigned char *) OutKey);
// ConvertToBase64 (EncOutKey、OutKey、strlen (OutKey));
ConvertToBase64 (EncOutKey、OutKey、20);
返回1;
}
请注意、您需要重新编译 WebServer 库、然后再编译 WebSocket 应用程序(确保链接器使用正确的"webserver.a"、这通常是您工作区中的"webserver.a"、即 \webserver\releases\webserver.a)。
BR、
Kobi