send event data from cpp