def recv(buffersize: int) ->bytes:
    """
        Receive up to `buffersize` bytes from the socket. When no data is
        available, block until at least one byte is available or until the
        remote end is closed. When the remote end is closed and all data is
        read, return the empty string.
        """
