diff options
Diffstat (limited to 'share/perl/test/OpenSimTest/Config.pm')
-rw-r--r-- | share/perl/test/OpenSimTest/Config.pm | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/share/perl/test/OpenSimTest/Config.pm b/share/perl/test/OpenSimTest/Config.pm new file mode 100644 index 0000000..14ab3ed --- /dev/null +++ b/share/perl/test/OpenSimTest/Config.pm | |||
@@ -0,0 +1,53 @@ | |||
1 | package OpenSimTest::Config; | ||
2 | |||
3 | use strict; | ||
4 | |||
5 | my $apache_server_host = "localhost"; | ||
6 | my $opensim_server_host = "localhost"; | ||
7 | |||
8 | # REGION | ||
9 | our $SIM_RECV_KEY = ""; | ||
10 | our $SIM_SEND_KEY = ""; | ||
11 | # ASSET | ||
12 | #our $ASSET_SERVER_URL = "http://127.0.0.1:8003/"; | ||
13 | our $ASSET_SERVER_URL = "http://$apache_server_host/opensim/asset.cgi"; | ||
14 | our $ASSET_RECV_KEY = ""; | ||
15 | our $ASSET_SEND_KEY = ""; | ||
16 | # USER | ||
17 | #our $USER_SERVER_URL = "http://127.0.0.1:8001/"; | ||
18 | our $USER_SERVER_URL = "http://$apache_server_host/opensim/user.cgi"; | ||
19 | our $USER_RECV_KEY = ""; | ||
20 | our $USER_SEND_KEY = ""; | ||
21 | # GRID | ||
22 | #our $GRID_SERVER_URL = "http://127.0.0.1:8001/"; | ||
23 | our $GRID_SERVER_URL = "http://$apache_server_host/opensim/grid.cgi"; | ||
24 | our $GRID_RECV_KEY = ""; | ||
25 | our $GRID_SEND_KEY = ""; | ||
26 | # INVENTORY | ||
27 | #our $INVENTORY_SERVER_URL = "http://127.0.0.1:8004"; | ||
28 | our $INVENTORY_SERVER_URL = "http://$apache_server_host/opensim/inventory.cgi"; | ||
29 | # handler list | ||
30 | our %HANDLER_LIST = (); | ||
31 | |||
32 | our %APACHE_SERVERS = ( | ||
33 | user => "http://$apache_server_host/opensim/user.cgi", | ||
34 | grid => "http://$apache_server_host/opensim/grid.cgi", | ||
35 | asset => "http://$apache_server_host/opensim/asset.cgi", | ||
36 | inventory => "http://$apache_server_host/opensim/inventory.cgi", | ||
37 | ); | ||
38 | |||
39 | our %OPENSIM_SERVERS = ( | ||
40 | user => "http://$opensim_server_host:8002", | ||
41 | grid => "http://$opensim_server_host:8001", | ||
42 | asset => "http://$opensim_server_host:8003", | ||
43 | inventory => "http://$opensim_server_host:8004", | ||
44 | ); | ||
45 | |||
46 | sub registerHandler { | ||
47 | my ($name, $func) = @_; | ||
48 | $HANDLER_LIST{$name} = $func; | ||
49 | } | ||
50 | |||
51 | |||
52 | 1; | ||
53 | |||