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