🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.ti.explorer
1 messages
1 total messages Started by James Rice Wed, 27 Mar 1991 20:58
Re: TCP connections to UNIX machines
#345
Author: James Rice
Date: Wed, 27 Mar 1991 20:58
31 lines
1657 bytes
It sounds to me like you're trying this the hard way.  The
Explorer's normal stream/file capability does this for you
for free (assuming I understand what you're trying to do).
All you need do is
  (open "<<my-unix-box>>:<<my-file>>" :direction :input
        :characters t)

and it will open a stream of the right type.  Actually it
even defaults in to :characters t and :direction :input
anyway.

If you're trying to do anything more clever than this then
you need to know that what the Explorer actually opens,
when you do the above, is a stream of the flavor
ip:ascii-translating-character-stream.  This flavor of
stream does more than frob the crlf problem, it also deals
with all of the other chars in the Explorer character set.

If you really want to do something more clever than this
then you should probably just specialize this class of
stream and open a stream of your new flavor.  The easiest
way to do this (since you are overriding the way that the
generic network code deduces what sort of stream to open
for a given medium is to bind the variable
ip:*tcp-stream-instantiator*, which can be a function that
actually does a make-instance on the flavor of stream that
you want.



Rice.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads