hi all, just wanna to make some inet apps, and from some article, i read that wininet using winsock inside to accomplish its task. and somehow i felt that winsock was more close to the network driver than wininet, please correct me if i'm wrong here. but i wanna to ask your opinion about that subject, because i'm gonna using it on win95 and heard that wininet/winsock was having bug inside that would leak memory. and i really dont want to dl patch from MS .

so, the questions are:

1) how hard could it be to make i.e. http transfer using winsock compared with using wininet? and is there any masm32 samples on that?

2) is winsock is always installed in w95? if i dont install IE, would it be there and usable?

3) if its not installed, could i just copy it from somewhere and move it to /windows/system and using it? or in another word, is winsock having any dependencies, to registry or to other file?

Posted on 2003-01-16 04:59:37 by dion
Afaik, winsock is always included in win32 platforms. However, for win95
(not later 9x versions, though) the user will have to install an upgrade to
have winsock version 2. Don't _ever_ do "manual file copying" of system DLLs,
inform the user that they need to get the winsock2 upgrade from microsoft.

There's already multiple samples of direct (winsock) HTTP available, both
in C/C++/Assembly and other assorted languages. Learn to search ;).

Afaik, it goes winsock->kernel->NDIS drivers. winsock DLLs are generic,
kernel is generic, NDIS drivers are per NIC.

it's a bit more complicated than that because of protocol drivers etc, but...
I guess it's the big picture anyway. Correct me if I'm wrong. MSDN probably
has a pretty good description of the hierarchy, so if you don't like incorrect
and/or partial answers, stop being lazy and read the official documentation ;)
Posted on 2003-01-16 06:40:59 by f0dder
AFAIK, wininet is only an API for the client side, not the server side. So if you want to write a server you'll have to use winsock.

Posted on 2003-01-16 13:31:36 by Thomas
thanks f0dder and Thomas. btw, what is "AFAIK"?

f0dder, sorry to be lazy, but meantime my msdn cds was borrowed by my friend and i had uninstalled it, so... anyway thanks.

Posted on 2003-01-16 20:17:57 by dion

thanks f0dder and Thomas. btw, what is "AFAIK"?

"AFAIK," AFAIK & IIRC, stands for "as far as i know" :grin:
Posted on 2003-01-16 20:19:47 by jademtech
hehe... thx jademtech :)
Posted on 2003-01-16 20:28:01 by dion