Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 May 95 18:21:54 MDT
From:      terry@cs.weber.edu (Terry Lambert)
To:        root@deadline.snafu.de (Andreas S. Wetzel)
Cc:        freebsd-bugs@FreeBSD.org
Subject:   Re: Weirdity in arpa/telnet.h ??
Message-ID:  <9505060021.AA20845@cs.weber.edu>
In-Reply-To: <m0s7WK3-000J2hC@deadline.snafu.de> from "Andreas S. Wetzel" at May 6, 95 00:58:10 am

next in thread | previous in thread | raw e-mail | index | archive | help
> In the includefile arpa/telnet.h it reads ?!
> 
> #define	NTELOPTS	(1+TELOPT_NEW_ENVIRON)
> #ifdef TELOPTS
> char *telopts[NTELOPTS+1] = {

[ ... ]

> #endif <==== !!! ====

[ ... ]

> #ifdef TELCMDS
> char *telcmds[] = {

[ ... ]

> #else  <==== !!! ====
> extern char *telcmds[];
> #endif <==== !!! ====

The commands are used in building clients that talk the protocol.

The options are useful for building servers.

You are not guaranteed to have an "extern char *telopts" in a program
that uses arpa/telnet.h, but you *will* be using the commands to
communicate over the link for anything that includes it.


Hint: look at the telnet and ftp client programs to see if you can find
a usage of "telopts".

					Terry Lambert
					terry@cs.weber.edu
---
Any opinions in this posting are my own and not those of my present
or previous employers.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9505060021.AA20845>