//..............................................................................
//
// Use this script to define logic for packet transmission in Jancy language.
// If you are not familar with Jancy, no worries -- on the surface, you can
// think of it simply as a safe scripting dialect of C -- most of C declarations
// and control-flow statements will compile just fine.
//
//..............................................................................

void main()
{
	// TODO: write the main action sequence here

	// if we return from main now, the script terminates.
	// wait in the inifinite loop and handle new log records
	
	for (;;)
		sys.sleep(500); // don't eat CPU in the loop
}

void onLogRecord(
	uint64_t timestamp,
	uint64_t recordCode,
	void const* p,
	size_t size
	)
{
	// TODO: write the new log record handling logic here
}
