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