Delivering messages through UDP

Have a CodeSite question that doesn't fit into any of the forums below? Post it here.

Delivering messages through UDP

Postby freefall » Tue Jun 14, 2016 3:07 am

Hello out there,

we are doing hardware testing devices with their own microcontrollers and operating systems. The GUI is running on Windows and we are using CodeSite for logging purposes in the GUI already for a long time. Now we would like to add status and error messages from our hardware devices into the Codesite log. Our idea was to use the UDP or TCP client inside the CSDispatcher to deliver messages directly from the hardware devices. Unfortunately, the port logging seems to be intended to only support Inter-Dispatcher communication. So delivering messages from the outside is not documented, neither is the structure of the UDP resp. TCP packets.

Is there a way to deliver messages from remote devices directly to the CSDispatcher without using a local dispatcher first?

Thanks in advance,

Posts: 1
Mon Jun 13, 2016 10:10 am

Re: Delivering messages through UDP

Postby Raize Support » Fri Jun 24, 2016 5:45 pm

Hi Henning,

I apologize for the delay. I've been out of the country for the past several weeks.

You can send CodeSite messages from a CodeSite Logger to a remote CodeSite Dispatcher by using one of the overloaded versions of the ConnectUsingTcp methods of the CodeSiteManager. You can also do this for each logger, but using the CodeSiteManager is better because then all TCodeSiteLogger instances would use the new settings. Calling ConnectUsingTcp instructs the logger to use TCP to communicate with the Dispatcher. The default version of the ConnectUsingTcp method instructs the logger to communicated with the Dispatcher running on the local machine, but there is an overloaded version that allows you to send CodeSite messages directly to a remote Dispatcher.

Raize Software Support
Raize Software
Raize Support
Posts: 622
Fri Mar 25, 2011 9:04 pm

Return to General

Who is online

Users browsing this forum: No registered users and 1 guest