Archived

This topic is now archived and is closed to further replies.

elendil67

Help getting started in network programming

Recommended Posts

Hi. I want to try something new, and network programming sounds fun to try. My goal is to create something of a peer-to-peer application, such as an instant messenger or maybe even a file-sharing program. Does anyone know of any resources about how I can go about learning network programming, advice, books, etc.? What should I learn? I was looking at all of this network programming stuff, and it was baffling. TCP/IP, sockets, .NET, WinSock, I have no clue about what to do. Can you please tell me what the basic things of network programming are, and what you would recommend I learn? Any resources about learning network programming, advice, books, explanations about it and what it is, and directions about how to get started would be greatly appreciated. ------------------- The saddest part about Microsoft bashing is that it''s all true.

Share this post


Link to post
Share on other sites
I think the following link is a good place to start. I haven''t been through all of the resources, so I''m not sure if they''re suitable for a beginner, but take a look anyway.

http://www.gamedev.net/reference/list.asp?categoryid=30

Good luck!

Share this post


Link to post
Share on other sites
Winsock 2 by Lewis Napper is a good book for programming TCP/IP under Windows, and to some degree networking in general. It''s starting to show it''s age a little, but the basics haven''t changed, and it comes with quite a bit of source code to help you along.

Share this post


Link to post
Share on other sites
Thanks so far you guys. Anyone else? So let me get this straight: WinSock is for only Windows, so what can I use for other platforms? Is there something for Linux? WinSock is basically sockets for Windows? And most importantly, does anyone have any resources or know of any on how I should get started? Thanks!

-------------------
The saddest part about Microsoft bashing is that it''s all true.

Share this post


Link to post
Share on other sites
Winsock is the windows implementation of the sockets API, which is the primary networking API used by *NIX operating systems. Basically once you''ve learned one, you''ve learned all you need. The big difference between Winsock and traditional Berkeley sockets is in the emphasis on WSAAsyncSelect() and WSAEventSelect() over the traditional select() function.

Share this post


Link to post
Share on other sites
Thanks for the reply. I was suspecting that maybe WinSock was the same thing. I guess then that I can check out almost any tutorials, UNIX or WinSock, because they probably show you how to initialize in WinSock too. Thanks. Anyone else with tips, pointations to some good tutorials?

Share this post


Link to post
Share on other sites
As Stodge linked, gamedev has a selection of networking tutorials. The only one I can attest to the accuracy of is Beej''s, but that''s fairly UNIX specific, i.e. bunches of posix stuff.

Share this post


Link to post
Share on other sites
Thanks! I was thinking of buying that, but now I really want to buy it thanks to you and all of the people who have recommended it to me. The best part (i''m assuming) about that book is probably the fact that it''s $15.

-------------------
The saddest part about Microsoft bashing is that it''s all true.

Share this post


Link to post
Share on other sites