I have different camera, but method is the same.
Under Alarm server add your TCP server listener.
Fetch results, respond with return Ok(); on every event, parse and store.
Multipart data containing xml,image1,image2,image3 (images are optional)
Cant be much different in your case.