>The code above is used for accessing a HTTP server using the HTTP protocol. Not just any server. If you tried using that code to access an SMTP server or a FTP server it would not work.
Yes, I would have expected that myself, but oddly enough it worked for frequent FTP connections to the MSKB (
ftp://ftp.microsoft.com/). Why did it work? I have no idea. I haven't tried it with SMTP, though.
>Using Winsock, you need to issue a connect and use the senddata and getdata commands. To create the server you need to use the Listen command. Then when a connection comes in you need to use another winsock control to accept it. The main control just listens that way you can have multiple concurrent connections to the same server.
Yep, that's what I need to use -- Listen. Do you know of a VFP syntax for that, that you'd be willing to share?
Thanks,
Jeff