def recv(self, block=True):
    '\n        Read data from socket.\n\n        :returns:\n            Tuple of (`bytes`, (`str`, `int`) containing the data, and remote\n            host/port respectively.\n        '
    flags = 0
    if (not block):
        flags = MSG_DONTWAIT
    while True:
        try:
            return self.sock.recvfrom(SCION_BUFLEN, flags)
        except InterruptedError:
            pass
Read data from socket.

:returns:
    Tuple of (`bytes`, (`str`, `int`) containing the data, and remote
    host/port respectively.
def recv(self, block=True):
    '\n        Read data from socket.\n\n        :returns:\n            Tuple of (`bytes`, (`str`, `int`) containing the data, and remote\n            host/port respectively.\n        '
    flags = 0
    if (not block):
        flags = MSG_DONTWAIT
    while True:
        try:
            return self.sock.recvfrom(SCION_BUFLEN, flags)
        except InterruptedError:
            pass