aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules
diff options
context:
space:
mode:
authorDr Scofield2009-01-26 21:32:43 +0000
committerDr Scofield2009-01-26 21:32:43 +0000
commit78db120b3d9e9ded282a895550a3fbadeeef0741 (patch)
treefc56c7084b6c61945a40c774531ae7b0b5e69257 /OpenSim/Region/Environment/Modules
parent~ extending attendee list to include agent name (diff)
downloadopensim-SC_OLD-78db120b3d9e9ded282a895550a3fbadeeef0741.zip
opensim-SC_OLD-78db120b3d9e9ded282a895550a3fbadeeef0741.tar.gz
opensim-SC_OLD-78db120b3d9e9ded282a895550a3fbadeeef0741.tar.bz2
opensim-SC_OLD-78db120b3d9e9ded282a895550a3fbadeeef0741.tar.xz
+ adding test server for debugging purposes
Diffstat (limited to 'OpenSim/Region/Environment/Modules')
-rw-r--r--OpenSim/Region/Environment/Modules/Avatar/Concierge/testserver/ConciergeServer.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Modules/Avatar/Concierge/testserver/ConciergeServer.py b/OpenSim/Region/Environment/Modules/Avatar/Concierge/testserver/ConciergeServer.py
new file mode 100644
index 0000000..a1a7750
--- /dev/null
+++ b/OpenSim/Region/Environment/Modules/Avatar/Concierge/testserver/ConciergeServer.py
@@ -0,0 +1,31 @@
1#!/usr/bin/env python
2# -*- encoding: utf-8 -*-
3
4import logging
5import BaseHTTPServer
6
7class ConciergeHandler(BaseHTTPServer.BaseHTTPRequestHandler):
8 def do_HEAD(req):
9 logging.info('[Concierge] %(command)s request: %(host)s:%(port)d --- %(path)s',
10 dict(command = self.command,
11 host = self.client_address[0],
12 port = self.client_address[1],
13 path = self.path))
14
15 req.send_response(200)
16 req.send_header('Content-type', 'text/html')
17 req.send_headers()
18
19 logging.info('[Concierge] %(command)s returned 200', dict(command = self.command))
20
21if __name__ == '__main__':
22
23 httpServer = BaseHTTPServer.HTTPServer(('', 8080), ConciergeHandler)
24 logging.info('[ConciergeServer] starting')
25
26 try:
27 httpServer.serve_forever()
28 except KeyboardInterrupt:
29 logging.info('[ConciergeServer] terminating')
30
31 httpServer.server_close()