Event message protocol. How to build a message and send it to the Event Server?

Good day.

How are you?

I want to be able to send mEvent Messages to the Event Server.

I have tried the sample AnalyticsEventTriggerViaLibrary to send an Event to Milestone and paint a boundary box to the stream.

But the methods and the construction of the message are obscured.

I would like to know how to send a message to the event server;

an Event, so that I can handle it in a PlugIn inside the XPRotect Management Client.

Is the message sent via HTTP ? Or directly using TCP/IP ?

MessageCommunication which is used in the AnalyticsEventTriggerViaLibrary is not a documented protocol and should be used with the MIP SDK classes as in the sample. If you are developing a plugin you must use the MIP SDK classes.

An alternative if you want a protocol method instead you should instead explore the TriggerAnalyticsEventXML sample. This protocol is sending XML with HTTP header using System.Net.Sockets.Socket to port 9090 of the Event Server.

I am in doubt if this answers your question, if not, please try to ask again..

MessageCommunication is TCP on port 2333 on the Event Server..

https://supportcommunity.milestonesys.com/s/article/Ports-for-alarms-from-Milestone-Event-Server-service?language=en_US

You can also send a NewEventCommand MIP message, like in mipsdk-samples-component/EventForm.cs at main · milestonesys/mipsdk-samples-component (github.com).

Also the XML in 9090 as Bo mentions: mipsdk-samples-protocol/TriggerAnalyticsEventXML at main · milestonesys/mipsdk-samples-protocol (github.com)

You can also use AddEvent from the AlarmCommand. You can see how to use the AlarmCommand in general here: mipsdk-samples-protocol/AlarmList at main · milestonesys/mipsdk-samples-protocol (github.com)