def db_connect(): global Db Db = peer2peer.conn() peer2peer.subscribe(Db, UUID) return Db
def xdb_connect(): global XDb XDb = peer2peer.conn('v.ccl.io:8080') peer2peer.subscribe(XDb, UUID) return XDb
def connect(): global Ps Ps = peer2peer.conn() db_connect() return Ps
def xconnect(): global Xps Xps = peer2peer.conn('v.ccl.io:8080') xdb_connect() return Xps
def connect(): global Ps Ps = peer2peer.conn() pass