ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent-MP/MP/Intro.pod
(Generate patch)

Comparing AnyEvent-MP/MP/Intro.pod (file contents):
Revision 1.11 by root, Tue Aug 4 21:06:47 2009 UTC vs.
Revision 1.12 by root, Mon Aug 10 19:23:43 2009 UTC

29You should of course also make sure that L<AnyEvent> and L<AnyEvent::MP> 29You should of course also make sure that L<AnyEvent> and L<AnyEvent::MP>
30are installed. But how to do that is out of scope of this tutorial. 30are installed. But how to do that is out of scope of this tutorial.
31 31
32Then we have to setup a I<shared secret>. For two L<AnyEvent::MP> nodes to 32Then we have to setup a I<shared secret>. For two L<AnyEvent::MP> nodes to
33be able to communicate with each other and authenticate each other it is 33be able to communicate with each other and authenticate each other it is
34necessary to setup the same I<shared secret> for both of them. For testing 34necessary to setup the same I<shared secret> for both of them.
35you can write a random string into the file C<.aemp-secret> in your home
36directory:
37 35
38 mcookie > ~/.aemp-secret 36The easiest way is to use the F<aemp> utility:
39 37
40 # or something more predictable 38 aemp gensecret
41 echo "secret123#4blabla_please_pick_your_own" > ~/.aemp-secret
42 39
40This creates the F<$HOME/.perl-anyevent-mp> config file and generates a
41random shared secret. You can copy this file to any other system and then
42communicate with it. You cna also select your own shared secret (F<aemp
43setsecret>) and for increased security requirements you can even create a
44TLS certificate (F<aemp gencert>).
45
43Connections will only be successful when the nodes that want to connect 46Connections will only be successful when the nodes that want to connect to
44to each other have the same I<shared secret>. For more security, you can 47each other have the same I<shared secret> (or successfully verify the TLS
45put a self-signed SSL/TLS key/certificate pair into the file (or a normal 48certificate).
46key/certificate and it's CA certificate).
47 49
48B<If something does not work as expected, and for example tcpdump shows 50B<If something does not work as expected, and for example tcpdump shows
49that the connections are closed almost immediatly, you should make sure 51that the connections are closed almost immediatly, you should make sure
50that F<~/.aemp-secret> is the same on all hosts/user accounts that you try 52that F<~/.perl-anyevent-mp> is the same on all hosts/user accounts that
51to connect with each other!> 53you try to connect with each other!>
52 54
53=head1 The Chat Client 55=head1 The Chat Client
54 56
55OK, lets start by implementing the "frontend" of the client. We will 57OK, lets start by implementing the "frontend" of the client. We will
56develop the client first and postpone the server for later, as the most 58develop the client first and postpone the server for later, as the most

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines