0029-C ++编程:WebSockets



这是我的实时(Twitch)编码流系列中的#29,致力于使用C ++编写我自己的Web服务器和服务框架。

我开始在WebSockets上开始工作。实际上,我实现了大多数WebSocket类!有一些松散的地方需要解决,我需要实现开放式握手,然后将其集成到Web服务器中。我们将继续进行下一步。 -在https://www.twitch.tv/rhymu8354现场观看。

2 comments
  1. Hi – Websockets a subject near and dear to my heart. I have been trying to get the Windows API WinHttpWebSocket family of functions working. Nearly zero documentation and fewer examples! Spent the day working on the API only to find that it appears to not calI the callback function when there is data in the recv buffer. See WinHttpSetStatusCallback…

    I have all the TCP client and server socket stuff working including "connection upgrade" in my project. However, I still need a way to encode and decode frames. Any chance you might put a link to this code so I can study how you did the framing stuff?

    When I was tying this yesterday I was having trouble doing the OR decryption. I am sure I missed some little thing.

    It is amazing how 99.99% of the websocket examples are just calling a library!

    My client wants websockets added to a large existing project so I have to use their chosen compiler – Powerbasic WIN10 – Ever seen it? It's interesting.

Comments are closed.