def connect(self, serverConnectionID): print "Setting up server state" self.connection = TS3.Connection(serverConnectionID) if not self.find_parent_channel(): print "Failed to find parent channel" return if not self.channel_factory_exists(): self.create_channel_factory() self.dbid_manager = DatabaseIDManager(self.connection) self.owner_db = ChannelOwner()
def __init__(self): self.connection = TS3.Connection() self.parent_channel = None handles = self.connection.getServerConnectionHandlerList() if len(handles) > 0: self.connect(handles[0])