announcement: AnyEvent::Fork::Remote
Marc Lehmann
schmorp at schmorp.de
Mon Apr 29 19:49:37 CEST 2013
On Mon, Apr 29, 2013 at 10:22:35AM -0700, Mike Schilli <anyevent at perlmeister.com> wrote:
> Interesting implementation, can you shed some light on what
>
> # xored together must start and and with \n
> my $magic0 = "Pdk{6y[_zZ";
> my $magic1 = "Z^yZ7~i=oP";
>
> does? :)
UTSL :)
Seriously, this is just random garbage that is xored together and sent back
to signal "I am ready".
The "I am ready" signal is required in any case, but could in theory just
be any hardcoded token.
The purpose on it being somewhat random is to skip any garbage messages
that might come before the magic token, and the reason it is created by
xoring is to aovid triggering on something echoing back data that was
sent, i.e. the token isn't part of the input stream.
It's just a bit of defense programming that is not needed if everything is
set up correctly.
--
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / schmorp at schmorp.de
-=====/_/_//_/\_,_/ /_/\_\
More information about the anyevent
mailing list