开发者

socket programming in c++ or VC++.net

开发者 https://www.devze.com 2023-01-21 05:38 出处:网络
I am a new developer of C++ and i want to do socket programming in c++ or VC++.net. If you have good and easy to learn tutorial for socket programming in开发者_Go百科 c/c++ please share the link.From

I am a new developer of C++ and i want to do socket programming in c++ or VC++.net. If you have good and easy to learn tutorial for socket programming in开发者_Go百科 c/c++ please share the link.


From Microsoft themselves, you can use winsock and read their guide: http://msdn.microsoft.com/en-us/library/ms738545(VS.85).aspx

You can also use boost.asio which uses the more cross-platform Boost library. http://www.boost.org/doc/libs/1_44_0/doc/html/boost_asio.html

I learned a lot at the beginning reading Beej's Guide


Here are some tutorials for you which I had referred to recently: http://shoe.bocks.com/net/

for more u can even refer to a book by Richard Stevens on Networked Game Prigramming.


edit: oops -- this is if you're interested in Unix, if you only want Windows, ignore the rest of this answer.

Try Unix Network Programming. You'll learn A LOT, and I do mean A LOT. After you've done sockets in C and learned protocols form that book, you'll understand working with them in any language, in any platform.


Check out the Free Framework for an introduction to high-performance Windows socket code. I find this a bit easier to follow than the Boost.ASIO code, probably because it's single-platform.

0

精彩评论

暂无评论...
验证码 换一张
取 消