def getBindingCountForType(self, bind_type):
        if bind_type == pdu_types.CommandId.bind_transceiver:
            # Sum of current transceiver binds plus greater of current transmitter or receiver binds
            connections_count = self.getMaxTransmitReceiveBindCount()
        else:
            # Sum of transceiver binds plus existing binds of this type
            connections_count = sum([len(self._binds[bt]) for bt in (pdu_types.CommandId.bind_transceiver, bind_type)])
        return connections_count
Sum transceiver binds plus receiver or transmitter depending on this type
dataset/ETHPy150Open mozes/smpp.twisted/smpp/twisted/server.py/SMPPBindManager.getBindingCountForType