[DGD] Implementing MXP
Lord Lerkista
lerkista at gmail.com
Tue Sep 9 02:33:03 CEST 2014
As i have seen, works like this:
The mud send this: IAC WILL TELOPT_MXP to the client to request is the
client support MXP
the client if has support send: IAC DO TELOPT_MXP to the server
and the server send IAC SB TELOPT_MXP IAC SE to inform that server is using
mxp
i don´t know where to catch the client response, i tried to edit comm.c in
function comm_receive to add a validation like the one used for TELOPT_SGA,
but don´t work:
case TS_DO:
if (UCHAR(*p) == TELOPT_TM) {
comm_write(usr, obj, (string *) NULL, tm,
sizeof(tm));
} else if (UCHAR(*p) == TELOPT_SGA) {
usr->flags &= ~CF_GA;
comm_write(usr, obj, (string *) NULL, will_sga,
sizeof(will_sga));
} else if (UCHAR(*p) == TELOPT_MXP) {
usr->flags &= ~CF_MXP;
fatal("Mxp enabled");
comm_write(usr, obj, (string *) NULL, will_mxp,
sizeof(will_mxp));
}
state = TS_DATA;
break;
Any ideas??
Thanks
On Mon, Sep 8, 2014 at 2:43 AM, Felix A. Croes <felix at dworkin.nl> wrote:
> Lord Lerkista <lerkista at gmail.com> wrote:
>
> > I'm implementing MXP in my Mud (a heavily modified 2.4.5 lib running in
> > latest DGD 1.5), for now, i can turn it on and off by hand, but i want
> > to be able to detect if the client support it, to enable it
> > automatically and to don't let people without support enable it and see
> > the tags
> >
> > Anyone have an idea of how can i do this?? i can enable network
> > extensions, but i don't have any idea what to do next
>
> Read the MXP specification to see if it provides for detection of client
> capabilities. Network extensions are not needed.
>
> Regards,
> Felix Croes
> ____________________________________________
> https://mail.dworkin.nl/mailman/listinfo/dgd
>
More information about the DGD
mailing list