Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 May 2000 22:51:48 -0400
From:      James Bailie <jazzturk@home.com>
To:        Jan Beck <jan@janbeck.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: socket programming
Message-ID:  <20000512225148.A1992@cr31617-a.lndn1.on.wave.home.co>
In-Reply-To: <4.2.0.58.20000512182856.00a45550@mail.janbeck.com>; from jan@janbeck.com on Fri, May 12, 2000 at 06:34:47PM -0500
References:  <4.2.0.58.20000511231604.00a4b560@mail.janbeck.com> <4.2.0.58.20000511231604.00a4b560@mail.janbeck.com> <20000512064458.A3593@cr31617-a.lndn1.on.wave.home.co> <4.2.0.58.20000512182856.00a45550@mail.janbeck.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, May 12, 2000 at 06:34:47PM -0500, Jan Beck wrote:

> I am using a telnet client to connect 
> to my server on a non-well known port. I can exchange messages (text) 
> between the server and the client, but dont know how to hide the password 
> on the initial login. 

The telnet client needs to be told not to echo keystrokes, by sending
the appropriate commands in the telnet protocol. I have Steven's TCP/IP
Illustrated Vol. I open on my lap. I've never done this myself, but it
appears straightforward: 

You must send three bytes to the client with the following decimal values:
255, which means, "interpret the following data as a command," then 254,
which means, "don't do this," and then 1 to specify echoing.  The client must
agree by sending 255, 252, 1. The client must agree under the protocol,
so if you don't get that response, something's wrong. 


-- 
James Bailie
http://members.home.net/jazzturk


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




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