sio sample cpp -> c