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.14 by root, Fri Aug 14 03:27:59 2009 UTC vs.
Revision 1.15 by root, Fri Aug 14 23:19:20 2009 UTC

4 4
5This is a tutorial about how to get the swing of the new L<AnyEvent::MP> 5This is a tutorial about how to get the swing of the new L<AnyEvent::MP>
6module, which allows us to transparently pass messages to our own process 6module, which allows us to transparently pass messages to our own process
7and to other processes on another or the same host. 7and to other processes on another or the same host.
8 8
9What kind of messages? Well, basically a message here means a list of 9What kind of messages? Well, basically a message here means a list of Perl
10Perl strings, numbers, hashes and arrays, anythin everything that can be 10strings, numbers, hashes and arrays, anything that can be expressed as a
11expressed as a L<JSON> text (as JSON is used by default in the protocol). 11L<JSON> text (as JSON is used by default in the protocol).
12 12
13And next you might ask: between which entities are those messages 13And next you might ask: between which entities are those messages being
14being "passed"? Effectively between I<nodes>: a nodes is basically a 14"passed"? Physically within or between I<nodes>: a nodes is basically a
15process/program that use L<AnyEvent::MP> and can run either on the same or 15process/program that use L<AnyEvent::MP> and can run either on the same or
16different hosts. 16different hosts.
17 17
18To make this more managable, every node can contain any number of 18To make this more managable, every node can contain any number of
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 21In this tutorial I'll show you how to write a simple chat server based
22on L<AnyEvent::MP>. This example is used because it nicely shows how to 22on L<AnyEvent::MP>. This example is used because it nicely shows how to
23organise a simple application, but keep in mind that every node trusts any 23organise a simple application, but keep in mind that every node trusts any
24other, so this chat cannot be used to implement a real chat server and 24other, so this chat cannot be used to implement a real chat server and
25client system, but it can be used to implement a distributed chat system 25client system, but it can be used to implement a distributed chat server
26for example. 26for example.
27 27
28=head1 System Requirements and System Setup 28=head1 System Requirements and System Setup
29 29
30Before we can start we have to make sure some things work on your 30Before we can start we have to make sure some things work on your

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines