C++基于GeographicLib库的经纬高坐标点
坐标系:WGS84
功能点
1、3D:经度、维度、海拔
2、计算两点间的距离和方位
3、根据距离、方位和高度获取另一个点的坐标(经纬高)
4、支持json序列化
基于nlohmann封装的线程安全的json化配置/参数类
只有头文件可直接在程序中使用。
rjson_config()
rjson_config(const nlohmann_json& json)
rjson_config(const rjson_config& oth)
rjson_config& operator=(const rjson_config& oth)
rjson_config& operator=(const nlohmann_json& json)
rjson_config& from_string(std::string& json_str)
rjson_config& load_from_file(const std::string& file_path)
std::string to_string() const
bool save_to_file(const std::string& file_path)
bool contains(const std::string& path) const
bool remove(const std::string& path)
void clear()
template<class T>
bool set_value(const std::string& path, const T& val)
template<class T>
bool get_value(const std::string& path, T& val) const
template<class T>
T value(const std::string& path, T& def_val)
static rjson_config parse_from_string(std::string& json_str)
static rjson_config parse_from_file(const
fix协议logon实现
fix协议实现 logon消息 heart beat消息 ,验证了test request。
包过滤防火墙
包过滤防火墙,分析捉获得IP包,如包的类型TCP,DUP,ICMP等报的状态
MYNetworkComms.Net.zip
改造过的NetworkComms.Net,摒弃了NetworkComms框架原有的模式,特别是TCP,使用NetworkComms自己的建立连接的握手规范。改造后保留了由于的连接管理维护功能及异步特性,使用任意使用自定义的协议格式。
ByteBuffer.cs
主要解决从流中获取数据,缓存,拆解,可用于TCP粘包问题