Login Page - Create Account

Support Board


Date/Time: Mon, 25 Nov 2024 22:38:14 +0000



[User Discussion] - DTC client example

View Count: 1515

[2022-03-06 19:01:37]
norvik_ - Posts: 106
Attachment to this topic contains project of dialog app with windows socket client functionality to handle DTC protocol message and procedures. Is it not a ready decision, but only template which may be used to build custom trading tool. MFC not used at this project.
Most of methods, declared in ClientDialog.h, has an empty definitions in *cpp, and should be defined on one's own in accordance with their objectives.
Date Time Of Last Edit: 2022-03-07 06:31:51
attachmentDTCClientExample.7z - Attached On 2022-03-06 19:00:53 UTC - Size: 341.99 KB - 257 views
Attachment Deleted.
[2022-03-06 23:20:30]
1+1=10 - Posts: 270
Was the file intended to be seen by other users or just SC support? I ask because you've attached it as a private file.
[2022-03-07 06:33:04]
norvik_ - Posts: 106
1+1=10, Thanks a lot! My mistake..
[2022-03-07 13:14:43]
1+1=10 - Posts: 270
Hi norvik_,

There's a few threads where people asked for DTC examples. If you use the forum search w/ "Limit to forum" checked, and search for "DTC example" & "DTC client" you could add your code there which would help notify those users. (Oh, the forum search is located right above the support board thread table. It is not the website search at top right.) Alternatively, I'm happy to link from those threads to this thread on your behalf but whichever your prefer.
[2022-03-07 13:49:37]
norvik_ - Posts: 106
You are right, this needs to be done
[2023-12-11 16:26:24]
SavantTrader - Posts: 110
Hello norvik - If you are still active, please enable direct messages so I can contact you.

Thank you, in advance.
[2024-02-01 01:39:54]
Zorin - Posts: 19
Note: in ClientDialog.cpp , IP address has to be applied IN CODE, like this:


#include "stdafx.h"
#include "ClientDialog.h"
#include "resource.h"


client_dlg::client_dlg(UINT resID) : CDialog(resID)
, ip_address("192.168.1.10")
, logon_state(DTC::LogonStatusEnum::LOGON_ERROR)

Otherwise - it always tries to connect to 127.0.0.1, and it does NOT take IP addr from the GUI form

PS Sierra's "built in" DTC client - not good for testing; too many restrictions , and what's caused by CME restrictions , and what's due to lack of testing - hard to tell

AND: for a very basic connectivity tests, we can always use PuTTY + RLogin [Sierra will kick us out in a few seconds, but we'll be able to see a connectivity prompt - at least , plus - client counter will blink for a few seconds too)
Date Time Of Last Edit: 2024-02-01 04:34:47
imagerlogin_prompt.png / V - Attached On 2024-02-01 04:28:53 UTC - Size: 8.53 KB - 67 views
imagerLoginTests.jpg / V - Attached On 2024-02-01 04:34:16 UTC - Size: 220.77 KB - 89 views

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account