def METHOD_NAME(self, c_socket):
    with c_socket:
        # Receive in KLV format
        action_bytes = c_socket.recv(sizeof(_klv_utils.action_t))
        if len(action_bytes) > 0:
            action_m = _klv_utils.action_t.from_buffer_copy(action_bytes)
            if action_m.length > 256:
                raise ValueError('Invalid length for message')
            value = bytearray(action_m.value)[:action_m.length]
            r = _store_actions.execute_action(action_m.action, value, self)
            if r is not None:
                c_socket.sendall(r.klv())