low level Internet
- Posted by Alan Tu <alantu at STUDENTS.UIUC.EDU> Mar 19, 2000
- 455 views
Greetings, I've been away from the list for about nine months because I was then transitioning my e-mail (and many other things). I'm now a freshman at the U of Illinois Urbana studying computer science (Java and in the future C). Anyway, I'm interested in writing a program that will communicate using TCP/IP in a rather low level way. The library will have about three main routines. integer ConnectionID = function OpenConnection(string serverIP, integer port) object result = function communicate(connectionID, string to send) procedure CloseConnection(ConnectionID) With some knowledge in (just ordinary text) protocol commands (FTP, POP3, SMTP, maybe even HTTP), geeks can use this library to do interesting things. I looked at some EU programs that use the Internet, like EuFTP and Web Shepherd. I think I can do the first procedure above using Wininet.dll and "InternetConnectA", I just need to study all the API parameters (a chore since I don't know C yet, but a definable one). I can probably trivially "close" the connection. That leaves the second procedure. All the commands in the above mentioned programs link libraries to wininet.dll (I think like "GetFileA") and such. Does anyone know how to do what I am proposing? I would appreciate any advice. Thank you. Alan