blob: 14ab3ed5ac802f158b32a2d43d7b55c5c1ca8ee7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
package OpenSimTest::Config;
use strict;
my $apache_server_host = "localhost";
my $opensim_server_host = "localhost";
# REGION
our $SIM_RECV_KEY = "";
our $SIM_SEND_KEY = "";
# ASSET
#our $ASSET_SERVER_URL = "http://127.0.0.1:8003/";
our $ASSET_SERVER_URL = "http://$apache_server_host/opensim/asset.cgi";
our $ASSET_RECV_KEY = "";
our $ASSET_SEND_KEY = "";
# USER
#our $USER_SERVER_URL = "http://127.0.0.1:8001/";
our $USER_SERVER_URL = "http://$apache_server_host/opensim/user.cgi";
our $USER_RECV_KEY = "";
our $USER_SEND_KEY = "";
# GRID
#our $GRID_SERVER_URL = "http://127.0.0.1:8001/";
our $GRID_SERVER_URL = "http://$apache_server_host/opensim/grid.cgi";
our $GRID_RECV_KEY = "";
our $GRID_SEND_KEY = "";
# INVENTORY
#our $INVENTORY_SERVER_URL = "http://127.0.0.1:8004";
our $INVENTORY_SERVER_URL = "http://$apache_server_host/opensim/inventory.cgi";
# handler list
our %HANDLER_LIST = ();
our %APACHE_SERVERS = (
user => "http://$apache_server_host/opensim/user.cgi",
grid => "http://$apache_server_host/opensim/grid.cgi",
asset => "http://$apache_server_host/opensim/asset.cgi",
inventory => "http://$apache_server_host/opensim/inventory.cgi",
);
our %OPENSIM_SERVERS = (
user => "http://$opensim_server_host:8002",
grid => "http://$opensim_server_host:8001",
asset => "http://$opensim_server_host:8003",
inventory => "http://$opensim_server_host:8004",
);
sub registerHandler {
my ($name, $func) = @_;
$HANDLER_LIST{$name} = $func;
}
1;
|