Simple Websocket Server in C++

Over the holiday break my interest in websockets was peaked when I watched my daughters play a javascript based multiplayer game I couldn’t find a simple example (or any actually) of how to write a C/C++ server which uses the websocket protocol.

After a some digging, reading the RFC, etc. I decided to write my own as a test – it’s a very simple test – but it works and establishes a connection. I posted it on github just in case someone else might be curious…it could save that person a couple of hours of header, sha, endian swapping headaches.

One thought on “Simple Websocket Server in C++

Leave a Reply

Your email address will not be published. Required fields are marked *