projects
/
urisagit/Stem.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
cleaned up demo scripts locations
[urisagit/Stem.git]
/
conf
/
chat_server.stem
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
],