Websockets + C++

Feb 6, 2014 at 10:01pm
So, I've already learned in school how to program in C++, and I know a bit about OO programming and all, but I'm together with a couple of friend trying to complete a school project, and there's quite a bit I don't (and they don't either) understand, and the teacher's basically told us to to figure it out ourselves...

We have an MS SQL database, a C++ program/server running a few methods which might (or not, but that doesn't really matter here) access the database, and what we can't understand is how to use Websockets, together with the C++ server we have, to connect to another server...

Basically, how does the C++ server interact with the Websockets and how do we connect to another server through them... (I honestly don't know much about web programming yet, I don't know if that's what I need here...)

If anyone can explain or tell me where I can learn this, I'd really appreciate...
Feb 7, 2014 at 1:11pm
There are a couple of socket function you need for the communication. It's not trivial, but not that hard either.

You can read about them on msdn:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms741394%28v=vs.85%29.aspx
Feb 7, 2014 at 1:49pm
Feb 7, 2014 at 6:10pm
SFML does a pretty good job simplifying sockets as well: http://www.sfml-dev.org/documentation/2.1/annotated.php

I personally started on WinAPI's implementation mentioned above and I think it's great. But I thought I'd throw in another option for variety.
Feb 9, 2014 at 10:17pm
Thank you all for your help :) it really does help, now I just got to study up.
THKS!
Topic archived. No new replies allowed.