Support Board
Date/Time: Tue, 26 Nov 2024 13:38:21 +0000
Post From: DTC client implementation in C#-some pointers needed
[2014-02-12 19:56:12] |
Sierra Chart Engineering - Posts: 104368 |
Will that byte array (buffer) be filled with bytes based on respective message types defined in DTC protocol?
YesHow will I know I am at the beginning of a message? Based on my understanding, each message structure has Size and Type at its beginning, so I could technically use that information to read off remaining bytes from the array. This would assume that whatever message I receive is GUARANTEED to have size/type at the start of it and that I will receive a complete message. I would then also have to make a conversion of the received bytes for each particular C++ variable type in the structure to a corresponding type in C#. Similarly, using the above logic I could send messages by populating a byte buffer with appropriate bytes that would comprise a given message structure in DTC protocol and then send it over the socket. This is a correct understanding. We would recommend creating the equivalent C# data structures used by the relay server which are defined in the DTCHeader.h file.Is this roughly how I should try to go about this? Thank you for assistance. Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |