Page 1 of 1

Telnet control codes to keepalive.

Posted: Sun Jun 19, 2016 11:05 am
by Proxy
I play a MOO that doesn't have GCMP capabilities. Unfortunately I couldn't figure out a way to stop the game from kicking me after a few minutes. I tried using Mushclient combined with a this plugin a player posted on the boards and found that it worked: This is what the plugin looks like

I use Linux and prefer having such a solution on mudlet where I play all my text based games, plus not having to use WIne on my machine. Can anyone help me by telling me how to go about implementing this in mudlet?

Re: Telnet control codes to keepalve

Posted: Sun Jun 19, 2016 1:05 pm
by SlySven
That plugin seems to be sending the Telnet NoOPeration sequence every two and a half minutes and I think you can quickly get the same effect by creating a "Timer" with the editor and setting the script area to contain something like:
Code: [show] | [select all] lua
local TN_IAC = 255
local TN_NOP = 241
local telnetSequence = string.char( TN_IAC, TN_NOP )
sendSocket( telnetSequence )
then set the time interval to 2 minutes 30 seconds as the original in that URL used and enable the timer when you are connected...

Re: Telnet control codes to keepalve

Posted: Sun Jun 19, 2016 3:31 pm
by Proxy
Thank you so much, SlySven! I just tested it and it works! :D

Re: Telnet control codes to keepalve

Posted: Sun Jun 19, 2016 8:35 pm
by SlySven
Ah ha - so that has incremented my successfully solved problem count today to a grand total of, wait for it, ONE so far. ;)

Re: Telnet control codes to keepalive.

Posted: Thu Jun 22, 2023 7:18 pm
by g3rman
Late to the party, but this was very helpful. Thank you SlySven!