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.12 by root, Mon Aug 10 19:23:43 2009 UTC vs.
Revision 1.13 by root, Thu Aug 13 20:47:54 2009 UTC

19I<ports>: Ports are ultimately the receivers of your messages. 19I<ports>: Ports are ultimately the receivers of your messages.
20 20
21In this tutorial I'll show you how to write a simple chat server based on 21In this tutorial I'll show you how to write a simple chat server based on
22L<AnyEvent::MP>. 22L<AnyEvent::MP>.
23 23
24=head1 System Requirements 24=head1 System Requirements and System Setup
25 25
26Before we can start we have to make sure some things work on your 26Before we can start we have to make sure some things work on your
27system. 27system.
28 28
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. 34necessary to setup the same I<shared secret> for both of them.
35 35
36The easiest way is to use the F<aemp> utility: 36The easiest way is to use the F<aemp> utility:
37 37
38 aemp gensecret 38 aemp gensecret
39 39
40This creates the F<$HOME/.perl-anyevent-mp> config file and generates a 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 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 42communicate with it. You can also select your own shared secret (F<aemp
43setsecret>) and for increased security requirements you can even create a 43setsecret>) and for increased security requirements you can even create
44TLS certificate (F<aemp gencert>). 44a TLS certificate (F<aemp gencert>), causing conenctions to not just be
45authenticated, but also to be encrypted.
45 46
46Connections will only be successful when the nodes that want to connect to 47Connections will only be successful when the nodes that want to connect to
47each other have the same I<shared secret> (or successfully verify the TLS 48each other have the same I<shared secret> (or successfully verify the TLS
48certificate). 49certificate).
49 50

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines