Results 1 to 3 of 3

Thread: Windows Socket Programming in C

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Australia
    Posts
    149

    Windows Socket Programming in C

    Hi,

    Just after any free eBooks, tutorials or any info on Network programming using c (console based), if anyone knows any good sites or links, and could paste them here, that would be a great help to me..

    I can do Socket programming in Unix/Linux so i know a bit about it, and the code i write is normaly very portable, but i am not realy sure what headers i should include, so maybe even if you just gave me a list of the headers that i should include in my windows program that would be great..

    Thanks for the help..


    -|- Hurgh -|-
    Email: [email protected]
    Website: http://www.hurgh.org/

    Unix, Linux, FreeBSD, OpenBSD, Solaris, Windows

    C, C++, PHP, VB6, ASP, VBScript, JavaScript

  2. #2
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    Just include

    Ws2_32.lib

    in your Linker parameter. If you include "windows.h", then the latest header file for winsock will automatically be declared so you don't need anything else.
    Almost everything is same for winsock on UNIX and Windows but Windows has implemented some additional features in Winsock 2.2. They start with WSA and can also support advanced non-blocking mode. I think the original Winsock only has "select" function to implement non-blocking mode but Winsock got 2 more that you can play around with while programming using Windows.
    Here's a good tutorial to get your started:
    http://www.inf.pucrs.br/~derose/file...ktutorial.html
    Baaaaaaaaah

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Australia
    Posts
    149
    Thanks for the reply, that is what i wanted, and it will help me out a lot..

    Thanks again,

    -|- Hurgh -|-
    Email: [email protected]
    Website: http://www.hurgh.org/

    Unix, Linux, FreeBSD, OpenBSD, Solaris, Windows

    C, C++, PHP, VB6, ASP, VBScript, JavaScript

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width