   Anyone know a good winsock tutorial?
  I really need a good winsock tutorial that will teach me how to setup a socket, listen on a port, and recieve/send data.I found a couple tutorials that I found almost helpful, but really just made me more confused."Johnnie''s Winsock Tutorial", is formatted in a odd way, where it shows a large block of code followed by a large summary. This is no good for me, because I like to take it step by step.So then I found "Winsock 2 For Games". This was written nicely in a step by step format. But the code was very confusing and would not compile correctly. The writer of that must have been using a different compiler than me because they would use the linereturn;to end the program, but that just caused a compile error on my compiler (dev-c++ version 4). There were many other errors too. And the file "winsock2.h" had a missing # which would screw up my projects. I''m really confused now, and those tutorials have confused me even more. I really just want a good tutorial with step by step instructions on how to use winsock to send/recieve data.Anyone know a good tutorial?    
  You need to add -lwsock32 to the compiler options. Other than that it should work fine.Dev-C++ 4 is pretty old, and you probably have the out dated copy of MinGW (the actual compiler, Dev-C++ is only the IDE) that came with it. I recommend you get the latest version.;  I have added that.Version 4 is the only version of dev c++ that works, tha latest version won''t compile anything correctly... ;  have you taken a look at this article. It seems to give a decent intro without throwing too much code at once then trying to sort it out with an explanation. Reminds me that perhaps I should make some tutorial of my own for winsock and put it on my site. I''ve found a couple of things here and there to make winsock code almost portable. I guess it''ll happen when it happens. ;  What do you mean the new version won''t compile anything right? I use MinGW every day and it works great! Dev-C++ 5 Beta was much better than 4 too, last time I tried it. ;  that article Nervo posted is the article about winsock 2 that had some code that didn''t compile right, ill have to try again when i get the latest dev c++ version working...When i tried to compile using the latest version of devc++ i got a run something error, or something like that, on line 2 of EVERY program i tried to compile.I cant remember exactly what the error was, i guess ill uninstall 4 and install the latest version and find what the error was and post it here...I think ill do that tomorrow tho, too tired now, need sleep...  