Share via

Websocket how to define server address

Carl Moreschi 1 Reputation point
2020-09-29T20:01:27.207+00:00

I am adding a websocket client to my C++ application. I am using VS 2013 on Windows 10.

I connect to the server using socket calls and start a TCP session.

After the connect completes I then do a websocketCreateClientHandle.

Next a websocketBeginClientHandShake.

At this step how to a specify the server that I connected to with sockets? I don't see how to define who to do this handshake with? Do I need to use the winHTTP function instead of socket functions?

Community Center | Not monitored

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.