(self)
return (sender[0], data)
Calls the socket *recvfrom* method and waits for the data,
      when the data is received, the method will return a tuple
      with the IP of the sender and the data received. When a timeout
      exception occurs, the method return None.

      :rtype: tuple (sender ip, data) or None when timeout exception
Calls the socket *recvfrom* method and waits for the data,
      when the data is received, the method will return a tuple
      with the IP of the sender and the data received. When a timeout
      exception occurs, the method return None.
Calls the socket * recvfrom * method and waits for the data when the data is received the method will return a tuple with the IP of the sender and the data received . When a timeout exception occurs the method return None .
def getData(self):
      """ Calls the socket *recvfrom* method and waits for the data,
      when the data is received, the method will return a tuple
      with the IP of the sender and the data received. When a timeout
      exception occurs, the method return None.

      :rtype: tuple (sender ip, data) or None when timeout exception

      """
      try:
         data, sender = self.sock.recvfrom(self.bufferSize)
      except socket.timeout:
         return None
      return (sender[0], data)
def getData ( self ) : try : data , sender = self . sock . recvfrom ( self . bufferSize ) except socket . timeout : return None return ( sender [ 0 ] , data )