Results 1 to 4 of 4

Thread: Winsock... and stuff!

  1. #1
    Guest
    1)
    How do I use winsock with C++?
    do I have to use the API's?
    if so, can you give me an example on how?

    Thanks,

    2)
    stuff;
    I know I have asked this before, but how do I make a FULL windows program without MFC???
    Parksie gave me some classes he wrote, I am sure they work great, but they are confusing for me, and I want my programs to be written completely by me.


    Thanks a lot.

    PS:

    How would I make an FTP, and/or a download resumer using C++ and winsock??

    Thanks,
    Dennis

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    I'm sure I sent you some separate code about them - I can send them again if you need.

    To use Winsock, you need the APIs, which are documented in the PSDK.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3
    Addicted Member
    Join Date
    May 2000
    Posts
    240

    Isnt the winsock

    use for c++ defined in a header file??

    I was looking at some code for port scanners and stuff liek that..and i had something like <sock.H> Something like that.


    isnt that how you use the winsock control in a c++ app?



  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    In C++ you don't usually use the Winsock control, since it's easier to use the API. I think it's in <winsock2.h>.

    PS - use Winsock2 rather than the original Winsock, since it has better support and is generally better.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

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