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