BSD 4_2 development
[unix-history] / usr / man / man8 / telnetd.8c
CommitLineData
f87c5f8e
C
1.TH TELNETD 8C "4 March 1983"
2.UC 4
3.SH NAME
4telnetd \- DARPA TELNET protocol server
5.SH SYNOPSIS
6.B /etc/telnetd
7[
8.B \-d
9] [
10.I port
11]
12.SH DESCRIPTION
13.I Telnetd
14is a server which supports the DARPA standard TELNET
15virtual terminal protocol. The TELNET server operates
16at the port indicated in the ``telnet'' service description;
17see
18.IR services (5).
19This port number may be overridden (for debugging purposes)
20by specifying a port number on the command line. If the
21.B \-d
22option is specified, each socket created by
23.I telnetd
24will have debugging enabled (see SO_DEBUG in
25.IR socket (2)).
26.PP
27.I Telnetd
28operates by allocating a pseudo-terminal device (see
29.IR pty (4))
30for a client, then creating a login process which has
31the slave side of the pseudo-terminal as
32.BR stdin ,
33.BR stdout ,
34and
35.BR stderr .
36.I Telnetd
37manipulates the master side of the pseudo terminal,
38implementing the TELNET protocol and passing characters
39between the client and login process.
40.PP
41When a TELNET session is started up,
42.I telnetd
43sends a TELNET option to the client side indicating
44a willingness to do ``remote echo'' of characters.
45The pseudo terminal allocated to the client is configured
46to operate in ``cooked'' mode, and with XTABS and CRMOD
47enabled (see
48.IR tty (4)).
49Aside from this initial setup, the only mode changes
50.I telnetd
51will carry out are those required for echoing characters
52at the client side of the connection.
53.PP
54.I Telnetd
55supports binary mode, and most of the common TELNET options,
56but does not, for instance, support timing marks. Consult
57the source code for an exact list of which options are not
58implemented.
59.SH "SEE ALSO"
60telnet(1C)
61.SH BUGS
62A complete list of the options supported should be given here.