summaryrefslogtreecommitdiffstats
path: root/pykolab/wap_client/connect.py
blob: 1c4c7ad6fdf1a7ff5dddcb462b4275ef5756b711 (plain)
1
2
3
4
5
6
7
8
9
def connect():
    global conn

    if conn == None:
        conn = httplib.HTTPConnection(API_HOSTNAME, API_PORT)
        conn.connect()

    return conn