To decode a binary answer from a socket connection in Python I would do :
import numpy as np
answer= b"\x80\x8eaS\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x80\x8eaS\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00"
datatype = [('da_0', '<i8'), ('i8_1', '<i8')]
np.frombuffer(answer, datatype)
which outputs
>>>array([(1398902400, 1), (1398902400, 1)],
dtype=[('da_0', '<i8'), ('i8_1', '<i8')])
I have been battling with the unpack() function (from {pack}) in R to reproduce the same result but unsuccessfully until now.
Any idea would be much appreciated !