Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming > #5444

Re: Sending Telnet “DON'T” or “WON'T” after having a successful a “DO” or “WILL”.

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail
From Michael Griffin <mrmisticismo@hotmail.com>
Newsgroups comp.programming
Subject Re: Sending Telnet “DON'T” or “WON'T” after having a successful a “DO” or “WILL”.
Date Wed, 20 May 2015 00:17:05 -0500
Organization Aioe.org NNTP Server
Lines 30
Message-ID <555C18D1.5070005@hotmail.com> (permalink)
References <4wQ6x.38225$yI2.34601@fx19.iad>
NNTP-Posting-Host kVHuDFcLK9BB4lxkjbK3nw.user.speranza.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
X-Complaints-To abuse@aioe.org
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0
X-Notice Filtered by postfilter v. 0.8.2
Xref csiph.com comp.programming:5444

Show key headers only | View raw


On 5/19/2015 7:25 PM, Daniel Pitts wrote:
> I apologize if this is off topic, not quite sure where else to ask.
>
> I'm implementing my own Telnet library in Java (just because).  I'm
> wondering if my library should allow sending a "WONT" or "DONT" that was
> otherwise unsolicited.  I'm also wondering if my library should reply to
> unsolicited "DONT" or "WONT" requests with the "WONT" or "DONT" reply
> respectively.  The RFC isn't quite clear on that part of the contract.
>
> All of this is assuming that I've already sent a DO and got a WILL, or
> visa versa.
>
>
> Thanks,
> Daniel.

Well usually the server is the one that initiates the negotiation.

If it's a client, then it should usually respond back with what the 
server is querying like BINARY, ECHO, NAWS etc.. But of course if an 
expected response is not received by the client, it is allowed to ask 
the server for it's preference. Unsolicited response are allowed, and 
can either be responded to, or ignored.

You want to be aware of possible loops where responses keep exchanging 
back and forth between the server and client well after they been answered.

Michael
telnet://htc.zapto.org

Back to comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Sending Telnet “DON'T” or “WON'T” after having a successful a “DO” or “WILL”. Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2015-05-19 17:25 -0700
  Re: Sending Telnet “DON'T” or “WON'T” after having a successful a “DO” or “WILL”. Michael Griffin <mrmisticismo@hotmail.com> - 2015-05-20 00:17 -0500
    Re: Sending Telnet “DON'T” or “WON'T” after having a successful a “DO” or “WILL”. Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2015-05-20 07:38 -0700

csiph-web