def transportsAreWorking(self):
    for transport in self.__sockMap.values():
        if transport.writable():
            return 1
    return 0
def transportsAreWorking(self):
    for transport in self.__sockMap.values():
        if transport.writable():
            return 1
    return 0