added some of uri's utility actions for build script
[urisagit/Stem.git] / conf / chat_server.stem
CommitLineData
4536f655 1# chat_server.stem
2#
3[
4 class => 'Stem::Console',
5],
6[
7 class => 'Stem::Hub',
8 name => 'server',
9 args => [],
10],
11[
12 class => 'Stem::Portal',
13 args => ['server' => 1 ],
14],
15[
16 class => 'Stem::SockMsg',
17 name => 'C',
18 args => [
19 port => 6668,
20 server => 1,
21 cell_attr => [
22 'data_addr' => ':sw:c'
23 ],
24 ],
25],
26[
27 class => 'Stem::SockMsg',
28 name => 'D',
29 args => [
30 port => 6669,
31 server => 1,
32 cell_attr => [
33 'data_addr' => ':sw:d'
34 ],
35 ],
36],
37[
38 class => 'Stem::Switch',
39 name => 'sw',
40 args => [
41
42 in_map => [
43
44 a => [ qw( a b c d ) ],
45 b => 'a',
46 c => [ qw( b d ) ],
47 d => 'c',
48 ],
49
50 out_map => [
51
52 a => 'client:A',
53 b => 'client:B',
54 c => 'C',
55 d => 'D',
56 ],
57 ],
58],