def __init__(self, dfs, fileSystem): NetworkThread.__init__(self, dfs) self.fileSystem_ = fileSystem self.listeners_ = [] self.peerLock_ = Lock(dfs, 'peer') self.workQueue_ = [] self.work_ = None self.knownPeers_ = set() self.fileFetchStatus = []
def __init__(self, callback, dfs): NetworkThread.__init__(self, dfs) self.callback_ = callback
def __init__(self, dfs, callback): NetworkThread.__init__(self, dfs) self.callback_ = callback self.connDFS_ = dfs_state.NullDFS self.data_ = ''