[program-l] Re: Question: creating a telnet client

  • From: Parham Doustdar <parham90@xxxxxxxxx>
  • To: program-l@xxxxxxxxxxxxx
  • Date: Wed, 01 Apr 2015 11:15:19 +0430

Hi,

No, this is not possible using Ajax, since the client needs to stay open all the time. The lifetime of PHP scripts finishes at the end of a request, so PHP is not the right medium (no matter how much I wish it were so, lol).

Thanks.

On 4/1/2015 8:38 AM, Jean Felipe Cardoso wrote:

Hi,

It's possible by using Ajax, no? With requests to a PHP script, for example.


On 01/04/2015 00:12, Littlefield, Tyler wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This is doable (and is already done) using websockets or javascript.
The base of telnet is just a stream of text that is separated with
\r\n|\r|\n. Inside that though are sequences like NAWS, etc. Don't
forget to negotiate those.
On 3/31/2015 3:11 AM, Parham Doustdar wrote:
Hi,

There is an online backgammon server called FIBS. FIBS is,
essentially, a telnet server, something like what MUDs are.
However, I'm trying to write a client for it. I am a web developer,
and I was planning on making this a web-based client. However,
apparently, such a thing is not possible to do on the web because
the web is based on the request-response paradigm, meaning that
everything is destroyed after the response has been sent to the
client, and what I need to do is to keep the telnet client open in
the background.

So I started wondering if such a thing would be possible with
other languages like .NET languages, or Java. However, I haven't
used any of these extensively.

So, does anyone know if it's possible to write an asynchronous
telnet client in any of these languages?

Thanks! ** To leave the list, click on the immediately-following
link:- **
[mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe] ** If
this link doesn't work then send a message to: **
program-l-request@xxxxxxxxxxxxx ** and in the Subject line type **
unsubscribe ** For other list commands such as vacation mode, click
on the ** immediately-following link:- **
[mailto:program-l-request@xxxxxxxxxxxxx?subject=faq] ** or send a
message, to ** program-l-request@xxxxxxxxxxxxx with the Subject:-
faq

- -- Take care,
Ty
twitter: @sorressean
web:http://tysdomain.com
pubkey: http://tysdomain.com/files/pubkey.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBAgAGBQJVG2IdAAoJEAdP60+BYxejSK0IAIw/KG2uCNEupmWq3PAI6tYi
hO0JpT4UExUV3TBsQZJ5wOASUU4WqfZKxDbcNqtLpGtOB/Ce9HjQHgts0ALg+yjf
KfsjxIs/Wyz7BC9elvWzMOd3IywoDUWNp9Iaj/BETBRXT2CM2Iij9snyUTZ7RCH9
ijreyIJsUX5zGJFSG1MamsGlzVTWvx6vALpGKqsXfv/lv5mU92xn8ND2GadKxYHU
O42n/p4BsuQN2PBpb2o2d6pKbaWlXOEq4o7FsEzVonH4/bAK9vYJGjC79rH3Hbxa
9uzaxI4a8eHGAsyxTOrlkphSpPJSXsXIyipVRmUdy0LmbuO2cidqJVlGIPbeXbc=
=7rWq
-----END PGP SIGNATURE-----
** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

Other related posts: