The Artima Developer Community
Sponsored Link

Java Answers Forum
Telnet protocol

1 reply on 1 page. Most recent reply: Apr 29, 2002 12:10 AM by Thomas SMETS

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Sachin

Posts: 1
Nickname: nsach
Registered: Apr, 2002

Telnet protocol Posted: Apr 28, 2002 10:02 PM
Reply to this message Reply
Advertisement
I have written aTelnet protocol program which is working fine for multiple clients. But it
has a problem wherein it is not able to detect the characters like newline, backspace, etc.
What happens is when the user presses a new line, I do a println onto the client but then it prints a new line along with a ^M character which is 13. Similarly for backspace, instead of going back, it prints a ^H.
Any suggestions as to how to make this print the actual chars. I am using Solaris 2.7.

Thanks


Thomas SMETS

Posts: 307
Nickname: tsmets
Registered: Apr, 2002

Re: Telnet protocol Posted: Apr 29, 2002 12:10 AM
Reply to this message Reply
Sachin,
May be a stupid answer on this one ...
:-/

Why aren't you doing a
System.out.print(YOUR_TEXT)
& upon finding a Baskspace, instead ?

I am not quiet sure I need to do to code a mock of your problem

Thomas,

Flat View: This topic has 1 reply on 1 page
Topic: Convert Blocking call in non-blocking call Previous Topic   Next Topic Topic: C to Java

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use