To compile and run this you need to put 'libavnetsdk.so' from the Dahua SDK in your Libary path.
Simple program which triggers Net Alarm on a Dahua NVR