实现策略配置功能

This commit is contained in:
lixiaoyuan
2025-08-28 18:42:37 +08:00
parent 8f6c83147b
commit dda905cda0
47 changed files with 1311 additions and 863 deletions

View File

@@ -18,7 +18,9 @@
#include "pv/PvApp.h"
#include "pv/PvUser.h"
#include "rlsocket.h"
#define wsa rlwsa
int main(int argc, char** argv)
{
// 设置控制台输出为 UTF-8 编码
@@ -52,6 +54,24 @@ int main(int argc, char** argv)
std::cout << jsonroot1.dump();
}
std::map<int, bool> mapT;
bool ff = mapT[1];
//rlwsa();
//rlSocket socket("127.0.0.1", 19801, 1);
//int ret = socket.connect();
//std::string s1 = "helloworld";
//socket.write(s1.c_str(), s1.size());
//std::vector<char> buf(1024, 0);
//while (true)
//{
// int len = socket.read(&buf[0], 1, 0);
// if (len > 0)
// {
// std::cout << "===>>> " << std::string(buf.begin(), buf.end());
// }
//}
std::cout << "===>>> main start ... " << std::endl;
////std::cout << Snowflake::instance().getId() << std::endl;