From owner-freebsd-hackers Tue Sep 8 17:45:13 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA18388 for freebsd-hackers-outgoing; Tue, 8 Sep 1998 17:45:13 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from silver.teardrop.org (silver.teardrop.org [169.197.56.132]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA18383 for ; Tue, 8 Sep 1998 17:45:12 -0700 (PDT) (envelope-from sno@teardrop.org) Received: from localhost (sno@localhost) by silver.teardrop.org (8.x.x/8.x.x) with SMTP id RAA26284 for ; Tue, 8 Sep 1998 17:45:01 -0700 (MST) Date: Tue, 8 Sep 1998 17:45:01 -0700 (MST) From: James Snow To: freebsd-hackers@FreeBSD.ORG Subject: ptys and Network Sockets Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I apologize before hand for what is going to be somewhat of a newbie question. I'm writing a network server for whose clients I would like to a provide a curses-based UI, but without providing a login shell on the machine running this server. (Need public access to this server.) My understanding is that in order for curses-based screen control to work, I need the functionality of a pseudo-terminal, as called by rlogind or telnetd or sshd or anything else through which one can launch pine or ircii or anything else with a pretty interface. So, a connection comes in via a network socket, (piece of cake) but how and where does it get bound to, transferred to, transformed into, transmogrifed, whatever the appropriate terminology is, a pseudo-terminal? Telnetd seems to have some home-brewed routines for doing this, and I'd like to go with the one provided by FreeBSD if possible. I believe this is forkpty, and it's called by rlogind, but I can't see where in rlogind the network socket and the pty come together and live happily ever after. I feel like I'm really close to the answer to this, I just need a push in the right direction. If anyone knows of any guides that explain this (hopefully in detail) or would be willing to explain this to me, I'd love to hear from you. Thanks in advance, and sorry again for the newbie question. -James Snow / - - - - - - - - - - - - - - - - - - - - - - - - - - - \ | We live in the short term, | org dot teardrop at sno | | and hope for the best. | I am Geek. Hear me ^G. | \ - - - - - - - - - - - - - - - - - - - - - - - - - - - / To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message