[DGD] Sending telnet KEEPALIVE packets

Felix A. Croes felix at dworkin.nl
Fri Jul 20 23:27:40 CEST 2007


"Kurt Nordstrom" <kurt at blar.net> wrote:

> I've been asked by a user with a wonky connection if I could have the Mud
> send them a periodic keepalive packet to avoid timing out.  I thought I'd
> ask here about the best ways to do this.  I had a few questions:
>
> - Is the keepalive character something a stock DGD driver will allow to go
> through, or am I gonna have to hack around in comm.c again?

As far as I know, telnet does not actually have a "keepalive character".
What is usually done is to send IAC NOP.  Some telnet clients can be
configured to send this periodically, and DGD will do the proper thing
in response, that is, it will ignore it.


> - Assuming I can send it with the driver, how would I specify this
> sequence in LPC?  Is there an escape code for it?

DGD cannot send it.  Of course, you're free to modify comm.c to send
periodical IAC NOPs; hopefully, not too many clients will crash as a
result.

Regards,
Dworkin



More information about the DGD mailing list