سؤال

I'm trying to figure out a way to implement a sample WebSocketClient in C using win32 APIs. I need it to communicate with a HTML+JS WebSocket server.

I see that most of the WebSocket specific APIs are supported only Windows 8 and above. Like in WinHttpWebSocketCompleteUpgrade function

Is my understanding incorrect? Any guidance, if the approach is feasible, would be of much help.

هل كانت مفيدة؟

المحلول

These links might be helpful:

LINK 1

LINK 2

نصائح أخرى

There is another Windows API for WebSockets called WebSocket Protocol Component API. Microsoft has also provided a sample code on Github which is a good starting point.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top