From owner-freebsd-questions Thu Jun 19 18:26:38 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id SAA01818 for questions-outgoing; Thu, 19 Jun 1997 18:26:38 -0700 (PDT) Received: from host.accessin.com.au (root@host.accessin.com.au [203.24.23.2]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id SAA01804 for ; Thu, 19 Jun 1997 18:26:21 -0700 (PDT) Received: from thampana.abseil.com.au (betagate.abseil.com.au [203.56.243.1]) by host.accessin.com.au (8.8.5/8.6.12) with ESMTP id JAA21812 for ; Fri, 20 Jun 1997 09:33:12 +0800 (WST) Received: from dingo.abseil.com.au (dingo.abseil.com.au [203.56.243.97]) by thampana.abseil.com.au (8.8.3/8.8.3) with SMTP id JAA26324 for ; Fri, 20 Jun 1997 09:22:31 +0800 (WST) Received: by dingo.abseil.com.au with Microsoft Mail id <01BC7D5D.222DF900@dingo.abseil.com.au>; Fri, 20 Jun 1997 09:34:21 +0800 Message-ID: <01BC7D5D.222DF900@dingo.abseil.com.au> From: Greg Laslett To: "'questions@freebsd.org'" Subject: Mapping a Virtual Serial device to a Terminal server port to behave like a real serial port Date: Fri, 20 Jun 1997 09:34:20 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi All, Is is possible to map to terminal server ports ? I would like a user program to fopen /dev/vs2 (or some such) and have this 'virtual' device behave like a real serial port (eg. /dev/cua1). When the terminal server boots it can open a permanent telnet session to the bsd box on port xxxx. Does bsd have anything that maps the incoming session on port xxxx into a device that users can open ? If for argument sake the terminal server telnets to port 2001 for it's line 1, and 2002 for line 2, then /dev/vs1 must always map to 2001 and /dev/vs2 must map to 2002 etc etc This is somewhat different to the normal ISP situation where dialins on the terminal server might auto telnet to port 23 on the bsd box and are given a login session on the next available /dev/ttypx. My outgoing connections must be certain about which device maps to what terminal server line !!! DEC used to do this sort of thing very well under Ultrix or VMS with a protocol called LAT. I'm hoping for a simple unix world solution. Regards, Greg Laslett. greg@abseil.com.au