Thread: Winsock - Where do i start?

  1. #1
    former member Brain Cell's Avatar
    Join Date
    Feb 2004
    Posts
    472

    Question Winsock - Where do i start?

    Before you post links to Johnnie's Winsock tutorial or any other similar tutorial , let me tell you what i want ...

    I'm looking for a tutorial that , unlike Johinnie's , assume that you know NOTHING but standard C\C++. I need a tutorial that explain every type and structure IN DETAIL aswell as other types\structures i could use.

    I want a tutorial that shows Winsock function prototypes and explain their parameters, what we should send to those function and why. And why should we use WinMain instead of main...etc

    Am i asking too much? I found few tutorials on Winsock but they all assume that you already know what they're talking about without even stating their assumptions.

    I have a background in TCP/IP and sockets btw , thats not the problem. The problem is Winsock programming itself.



    any help is much appreciated
    My Tutorials :
    - Bad programming practices in : C
    - C\C++ Tips
    (constrcutive criticism is very welcome)


    - Brain Cell

  2. #2
    Registered User
    Join Date
    Nov 2004
    Location
    Slovenia, Europe
    Posts
    115
    [C++]
    IDE: DevC++ 4.9.9.2 (GCC 3.4.2)
    2nd compiler: g++ (GCC 3.4.3/4.0.0)
    3rd compiler: Borland 5.5
    [C#]
    IDE: Microsoft Visual C# Express 2005
    2nd IDE: SharpDevelop
    2nd compiler: csc in Command Prompt
    .NET Framework: 2.0
    [PHP]
    Core: 5.1.0 beta 3
    IDE: PHPEdit
    2nd IDE: Notepad
    Favourite extensions: exif,gd2,mysql
    Favourite PEAR packages: DB, XML_RSS, ID3
    Favourite databases: SQLite, MySQL

  3. #3
    return 0;
    Join Date
    Jan 2005
    Location
    Netherlands
    Posts
    89
    Quote Originally Posted by Brain Cell
    And why should we use WinMain instead of main...
    It's not necessary, it's your choice wether you create a win32 api (WinMain) or a normal console program (main).

    Here is a good tutorial for networking. Just keep this in mind when using winsock:

    ignore pretty much all of the system header files I mention in here. All you need to include is:

    #include <winsock.h>

  4. #4
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    I usually suggest starting here.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  5. #5
    former member Brain Cell's Avatar
    Join Date
    Feb 2004
    Posts
    472
    Snip : I tried to follow that tutorial before but i had a bit of a hard time. But i'll try again if i don't find any other good tutorial, thanks.

    adrianxw : Thanks for the link. Last update for that tutorial was 1999 , don't you think there might outdated info? I didn't read it yet but hopefully it explains things in detail

    publikum : Are you trying to prove that you're stupid? you could've simply said "hey everyone i'm stupid" and save the time you spent on searching for Johnnies tutorial
    My Tutorials :
    - Bad programming practices in : C
    - C\C++ Tips
    (constrcutive criticism is very welcome)


    - Brain Cell

  6. #6
    I am me, who else?
    Join Date
    Oct 2002
    Posts
    250
    I think the link adrianxw sent was fairly good, a few things that I can see are out of date, but almost everything you see there seems to be right. Of course I am no expert, but looking at that was a bit easier than reading some of the other tutorials, but hey its all in how you learn. Check out adrian's first then go on to the others and they should progressively make sense

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++ gui for windows where to start
    By prixone in forum Windows Programming
    Replies: 2
    Last Post: 12-16-2006, 11:48 PM
  2. GNOME Desktop won't start (Mandriva)
    By psychopath in forum Tech Board
    Replies: 10
    Last Post: 07-19-2006, 01:21 PM
  3. WHEN to start game programming
    By mrcheesypants in forum Game Programming
    Replies: 18
    Last Post: 02-02-2006, 04:09 PM
  4. Need help from experts to start game programming
    By cader in forum Game Programming
    Replies: 8
    Last Post: 11-29-2005, 12:48 PM
  5. start another program
    By lshome in forum C Programming
    Replies: 3
    Last Post: 06-24-2002, 01:48 PM