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.