At 01:27 31/01/2003 -0800, Andrew Wendt wrote:
>
>binary = connection_option(who, "binary");
>set_connection_option(who, "binary", 1);
>notify(who, encode_binary(msg, 255, 249));
>set_connection_option(who, "binary", binary);
As I understand it, it's best practice to use hold-input when
you're changing the binary option on a player, just in case they
type something in at the exact wrong moment. So the code would
then be:
hold = connection_option(who, "hold-input");
binary = connection_option(who, "binary");
set_connection_option(who, "hold-input", 1);
set_connection_option(who, "binary", 1);
notify(who, encode_binary(msg, 255, 249));
set_connection_option(who, "binary", binary);
set_connection_option(who, "hold-input", hold);
At least, that's my theory :)
--
Gavin Lambert, Mirality Systems
{http://www.mirality.co.nz/}
----
Chaos, panic, and disorder. My work here is done.
#############################################################
This message is sent to you because you are subscribed to
the mailing list <[EMAIL PROTECTED]>.
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
To switch to the DIGEST mode, E-mail to <[EMAIL PROTECTED]>
To switch to the INDEX mode, E-mail to <[EMAIL PROTECTED]>
Send administrative queries to <[EMAIL PROTECTED]>