1. low level Internet

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

new topic     » topic index » view message » categorize

2. Re: low level Internet

Alan,

What you are proposing is a client/server system.  I have written a server
demo, which is on my webpage at

http://www.2fargon.com/euprog

It uses winsock rather than winInet.  winInet works just fine, but it only
handles http, ftp, and gopher protocols.  Winsock just opens connections,
and reads/writes whatever data you like.  I also have a pop3server demo
that can show you how to use an existing protocol with a custom server.

Good Luck, and feel free to ask me if you've got any questions.

Brian

new topic     » goto parent     » topic index » view message » categorize

3. Re: low level Internet

This information might help you

  http://msdn.microsoft.com/library/periodic/period97/hood0997.htm

new topic     » goto parent     » topic index » view message » categorize

4. Re: low level Internet

I do know that Daniel Bersteins ftp program wrapped some  of the wininet.dll
routines...
Does this help?
monty

new topic     » goto parent     » topic index » view message » categorize

5. Re: low level Internet

Yes, I took a look at them.  It seems promising because it looked as if the
routine allowed one to specify a host and a specified port.  But there
wasn't a way within wininet to just transmit and receive data.  That's why I
was directed to sockets.  wininet.dll only has specific protocol routines.

Alan

----- Original Message -----
From: "M King" <boot_me at GEOCITIES.COM>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Monday, March 20, 2000 8:16 PM
Subject: Re: low level Internet


> I do know that Daniel Bersteins ftp program wrapped some  of the
wininet.dll
> routines...
> Does this help?
> monty
>

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu