*BSD News Article 36467


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!agate!howland.reston.ans.net!news.sprintlink.net!indirect.com!wes
From: wes@indirect.com (Barnacle Wes)
Newsgroups: comp.os.386bsd.questions
Subject: Re: FreeBSD terminal server type thing
Date: 2 Oct 1994 21:11:21 GMT
Organization: Internet Direct, Inc.
Lines: 13
Message-ID: <36n7lp$ct1@herald.indirect.com>
References: <Cwu5Jr.FvI@un.seqeb.gov.au>
NNTP-Posting-Host: bud.indirect.com
X-Newsreader: TIN [version 1.2 PL2]

pc012@un.seqeb.gov.au (Patrick Collins) writes:

>Can anyone give me any clues on how to write a daemon that will listen on 
>a tcpip port and connect incoming sessions to a serial port. This would 
>work in much the same way as a terminal server does.

As in allowing TCP access to a modem, or such?

Check out the book _Adventures in UNIX Network Applications Programming_,
Bill Rieken and Lyle Weiman, John Wiley & Sons, 1992.  ISBN 0-471-52859-7

The authors present several examples like what you're attempting, including
a print service that prints to a port on a TCP/IP terminal server.