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
Exemple #2
0
 def __init__(self, port_address=7100):
     ConnectionManager.__init__(self, port_address=port_address)
     MDParticipant.__init__(self, base_class=self)
Exemple #3
0
 def handleDatagram(self, datagram):
     MDParticipant.handleDatagram(self, PyDatagramIterator(datagram), connection=datagram.getConnection)
Exemple #4
0
	def handleDatagram(self, datagram):
		MDParticipant.handleDatagram(self, datagram)