Just FWIW, a com port/internet redirector in softare is not unheard of,
there used to be one for Win95, that just gave "OK" responses to AT commands
thrown at it, except for ATDT, for which it took the remaining text as the
FQDN that you wished to connect to. It would the return a CONNECT string
when the telnet connection was established. (Let you use procomm as telnet
client, which was spiffy). More on topic, this could be done in Linux, if
dosemu uses the linux /dev/ttyS0 devices, by creating a device driver (in C)
that functions as the emulator I described above does, and telling dosemu
that that device was a certain com port. You'd of course have to disable
direct port access, methinks.
regards,
jeff
On Sun, Dec 13, 1998 at 10:06:35PM -0800, Stefan Hudson wrote:
> > Hiya.
> >
> > I'm looking for a way to "fake" a telnet session as a serial port under
> > dosemu (legacy application uses serial ports to communicate and we need to
> > make it use telnet instead).
> >
> > I've had some success with using $_com2 = "/dev/ttyp4" (for eg) but can't
> > get the input going in both directions properly. (and have problems with not
> > being able to open the current VT). Since the 16550 code creates entirely
> > virtual UARTs, I can't see why this can't be done, or why it hasn't been
> > done already.
> >
> > If anyone has any experience in this sort of task, or pointers towards a
> > setup that does it, I'd be grateful. If not, I guess me/somebody has to
> > write it :)
>
> I had a similar problem... I wanted to put up a DOS based BBS, and have
> it accessed via the Internet instead of a modem. I solved the problem by
> throwing hardware at it - I used a null modem to a Portmaster serial port,
> which can connect to an incoming TCP connection.
>
> I looked at trying to do it without the hardware, which would be preferable,
> but I didn't get too far. I think to work well, it would have to be
> implemented inside the emulator itself. I don't know what you could tell
> when the aplication has opened the port otherwise, and you'd also have
> to fake a modem's response codes for outbound connections.
>
> --
> /// Stefan Hudson <[EMAIL PROTECTED]>
> __ /// Senior Network Administrator - Monterey Bay Internet
> \\\/// http://www.mbay.net/ - Email: [EMAIL PROTECTED]
> \XX/ Voice: 831-642-6100 Fax: 831-642-6101 Modem: 831-642-6102
--
Jeff Bachtel
Network Availiblity Center, Texas A&M University
http://www.houseofj.ml.org/~jeff
Feebly jeer the calf.