def register_channel(self, connection, channel): if self.authenicateChannel(connection, channel) == False: self.registeredParticipants[channel] = connection print("MDParticipantInterface: Registered channel: %d" % channel) # DEBUG! new_client = MDParticipant(connection, channel) self.registeredClients.append(new_client) else: return
def __init__(self, port_address=7100): ConnectionManager.__init__(self, port_address=port_address) MDParticipant.__init__(self, base_class=self)
def handleDatagram(self, datagram): MDParticipant.handleDatagram(self, PyDatagramIterator(datagram), connection=datagram.getConnection)
def handleDatagram(self, datagram): MDParticipant.handleDatagram(self, datagram)