编程之美
leotoneo
ls all | grep only
https://github.com/leotoneo
展开
-
c语言实现模拟发送报文
typedef struct _SCK_HANDLE { char version[16]; char serverip[16]; int serverport; unsigned char *buf ; int buflen; }SCK_HANDLE; //客户端初始化 获取handle上下 __declspec(dllexport) int c原创 2015-10-12 20:05:52 · 4187 阅读 · 1 评论 -
配置文件读写(c语言指针实现)
实现流程 打开文件 按照行的方式 循环读文件 解析每一行,若匹配key关键字,在进行value值的提取 提取value值需要 1去除前后空格 1级指针典型应用原创 2015-10-12 13:13:51 · 505 阅读 · 0 评论 -
c语言实现模拟发送报文改进版(添加程序自动打log)
#include #include #include #include #include #include #include #include #include "ItcastLog.h" #define ITCAST_DEBUG_FILE_ "socketclient.log" #define ITCAST_MAX_STRING_LEN 10240 //Level类别原创 2015-10-13 13:43:40 · 1688 阅读 · 0 评论