    def hasConnected(self):
        '''
        @return: 是否连接上了
        @rtype: bool
        '''
        return self.isValid() and self.__connStatus == Transceiver.CONNECTED
@return: 是否连接上了
@rtype: bool
biliup/Danmaku/tars/__trans.py