Network.. Again??

closed account (1vD3vCM9)
apperently the last time i asked this question, everyone ignored.. lets hope i won't get ignored this time.
(NOTE, English isn't my native language, so expect some grammer issues)

why can't i find any Network Socket programming in C++?
i tried searching for over a week, i couldn't find a WORKING guide for WINDOWS.
mostly are for Linux, and the ones for Windows fail to compile.
i tried SFML Network.hpp but there is not enough documentation about it to read and learn, so i couldn't get it to work.

why is Network programming in C++ so hard??
isn't there a NORMAL library to use?
(yes i have tried winsock.h and WinSock2.h, both still wont work with guides, and not enough documentation about them with Windows)

what i want to achive? a chat program where you can chat to someone online.
What Should i do??

Thanks.
closed account (E0p9LyTq)
A Microsoft Developers Network guide on Windows Sockets 2:

https://msdn.microsoft.com/en-us/library/windows/desktop/ms740673%28v=vs.85%29.aspx

Getting Started with Winsock:

https://msdn.microsoft.com/en-us/library/windows/desktop/ms738545%28v=vs.85%29.aspx
Perhaps nooone knows.

And, it is not a beginner's question. Look for an answer in the Windows forum.

Last time I did TCP programming in C++ was 10 years ago. I used winsock, it was working, and the program I made is still working today.

At that time, I also remember using two other libraries in order to make my program work on many platforms. So, I used Enet and HawkNL. Both are low-level libraries. I don't know if they are up-to-date.

If I remember correctly, there is some network library in DirectX, but I never used it. And I never needed to use a high-level network library. That's just the nature of my job.
closed account (1vD3vCM9)
ok, thanks.
closed account (48T7M4Gy)
http://www.codeproject.com/Articles/13071/Programming-Windows-TCP-Sockets-in-C-for-the-Begin

This is not a bad start too if you haven't already seen it.

Don't be put off by the c reference, any windows stuff is that way inclined.

The major breakthrough comes when you get two machines communicating with each other. This is enough to do it even if it's only 127.0.0.1
Topic archived. No new replies allowed.