PDA

Click to See Complete Forum and Search --> : Winsock... and stuff!


Sep 21st, 2000, 05:33 AM
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

parksie
Sep 21st, 2000, 12:18 PM
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.

Sophtware
Sep 21st, 2000, 02:24 PM
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?

parksie
Sep 21st, 2000, 04:18 PM
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.