Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!usc!ucsd!ucbvax!SUMEX-AIM.STANFORD.EDU!Rice From: Rice@SUMEX-AIM.STANFORD.EDU (James Rice) Newsgroups: comp.sys.ti.explorer Subject: Re: TCP connections to UNIX machines Message-ID: <2879096288-12373719@KSL-EXP-35> Date: 27 Mar 91 20:58:08 GMT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 31 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 "<>:<>" :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.