summaryrefslogtreecommitdiff
path: root/pykolab/wap_client/connect.py
diff options
context:
space:
mode:
Diffstat (limited to 'pykolab/wap_client/connect.py')
-rw-r--r--pykolab/wap_client/connect.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/pykolab/wap_client/connect.py b/pykolab/wap_client/connect.py
new file mode 100644
index 0000000..1c4c7ad
--- /dev/null
+++ b/pykolab/wap_client/connect.py
@@ -0,0 +1,9 @@
+def connect():
+ global conn
+
+ if conn == None:
+ conn = httplib.HTTPConnection(API_HOSTNAME, API_PORT)
+ conn.connect()
+
+ return conn
+