Groups | Search | Server Info | Login | Register


Groups > comp.os.os2.programmer.misc > #1916

Re: TCP/IP options

From Paul Edwards <mutazilah@gmail.com>
Newsgroups comp.os.os2.programmer.misc
Subject Re: TCP/IP options
Date 2024-03-26 16:32 +0800
Organization A noiseless patient Spider
Message-ID <utu167$1n0oc$1@dont-email.me> (permalink)
References <uttrtd$1lrs8$1@dont-email.me>

Show all headers | View raw


On 26/03/24 15:02, Paul Edwards wrote:

> Although I suspect that I can probably use qemu and
> com1 if I just want to retrieve the text at
> http://pdos.org - I will try that.

Actually, I simply tried telnet, and:

telnet www.pdos.org 80

followed by:

GET /index.htm HTTP/1.0
Host: www.pdos.org
<blank line here, so just hit enter>

worked fine, got me my page, and did indeed disconnect.


And it occurred to me that since I have control of
my own C library (PDPCLIB), I would make the above
work with fopen("tcp://www.pdos.org:80", "r+");
(probably don't want binary for this - but the
application can make that choice)

And then it's up to my C code (in PDPCLIB, not the
app), to interpret that "tcp://" and then do whatever
OS/2 calls are required to make a connection.

That sounds neat to me.

Or am I missing something?

And use the same syntax as qemu for the filename?

-serial tcp:news.eternal-september.org:119

Thoughts?

Thanks. Paul.

Back to comp.os.os2.programmer.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

TCP/IP options Paul Edwards <mutazilah@gmail.com> - 2024-03-26 15:02 +0800
  Re: TCP/IP options Paul Edwards <mutazilah@gmail.com> - 2024-03-26 16:32 +0800
    Re: TCP/IP options Paul Edwards <mutazilah@gmail.com> - 2024-03-26 19:34 +0800
      Re: TCP/IP options Paul Edwards <mutazilah@gmail.com> - 2024-03-26 19:53 +0800
      Re: TCP/IP options Paul Edwards <mutazilah@gmail.com> - 2024-03-27 07:36 +0800

csiph-web