4 Star 12 Fork 22

老张 / TdxTradeServer

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
tts_setting.h 1009 Bytes
Copy Edit Raw Blame History
RainX(Jing Xu) authored 2017-08-18 17:21 . add aes and encrypt
#ifndef TTS_SETTING_H
#define TTS_SETTING_H
#include <QObject>
#include <QSettings>
#define DEFAULT_TRADE_DLL_NAME "trade.dll"
#define DEFAULT_PORT 19820
#define DEFAULT_BIND "127.0.0.1"
typedef struct _TTS_SettingObject {
int32_t port; // 监听端口
QString trade_dll_path; // dll路径
QString bind; // 邦定ip
bool ssl_enabled; // 是否启用ssl
QString ssl_private_key; // 私钥
QString ssl_certificate; // CA 证书
QString transport_enc_key; // 对传输进行签名的密钥
QString transport_enc_iv; //
bool transport_enc_enabled; // 是否开启了签名加密
} TTS_SettingObject;
class TTS_Setting : public QObject
{
Q_OBJECT
public:
explicit TTS_Setting(QObject *parent = nullptr);
public:
static QSettings* loadSettingsFile();
static TTS_SettingObject loadSettings();
signals:
public slots:
};
#endif // TTS_SETTING_H
C++
1
https://gitee.com/better319/TdxTradeServer.git
git@gitee.com:better319/TdxTradeServer.git
better319
TdxTradeServer
TdxTradeServer
master

Search