From owner-freebsd-questions Mon Oct 4 3:46: 0 1999 Delivered-To: freebsd-questions@freebsd.org Received: from laurasia.com.au (lauras.lnk.telstra.net [139.130.93.142]) by hub.freebsd.org (Postfix) with ESMTP id 3E23014C17 for ; Mon, 4 Oct 1999 03:45:49 -0700 (PDT) (envelope-from mike@laurasia.com.au) Received: (from mike@localhost) by laurasia.com.au (8.9.3/8.9.3) id SAA63376; Mon, 4 Oct 1999 18:45:44 +0800 (WST) (envelope-from mike) From: Michael Kennett Message-Id: <199910041045.SAA63376@laurasia.com.au> Subject: Re: question on telnet In-Reply-To: <19991004100911.28359.qmail@hotmail.com> from Samuel Jose Moses at "Oct 4, 1999 03:09:10 am" To: samueljose@hotmail.com (Samuel Jose Moses) Date: Mon, 4 Oct 1999 18:45:44 +0800 (WST) Cc: questions@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi Samuel, The RFC for telnet is 854 -- you can get it from www.faqs.org, or from the internet society (www.rfc-editor.org). From memory (I can't find my copy of the RFC at the moment), the protocol is fairly straightforward. There is no need to negotiate options, and you should be able to just send straight text. The Telnet protocol defines something called an 'NVT' (Network Virtual Terminal), which defines the characteristics of the control characters. Also, at the top of the 8-bit character space are some reserved characters -- from memory, it is just the byte 255 -- check RFC 854 for details. If your just using straight 7-bit ascii, you shouldn't have any problems. Also, java uses unicode (16-bit) character encodings natively, so you'll have to tell java to convert its characters into ASCII. I've forgotten how to do that, but the JDK docs should tell you. Regards, Mike Kennett (mike@laurasia.com.au) > hello > how to communicate to a telnet server after connecting to port 23 via a > java program?what is the msg to be sent first to the server after > establishing the connection? > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message