INNER CODE UNIT · Python

__init__

unrealcv/unrealcv · client/python/unrealcv/__init__.py:64

    def __init__(self, payload):
        self.payload_size = ctypes.c_uint32(len(payload)).value

    @classmethod
    def _recv_exact(cls, sock, nbytes):
        chunks = []
        remaining = nbytes
        while remaining:
            chunk = sock.recv(remaining)
            if not chunk:
                return None
            chunks.append(chunk)
            remaining -= len(chunk)
        return b''.join(chunks)

    @classmethod
    def ReceivePayload(cls, sock):
        """

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…