- 博客(3)
- 资源 (1)
- 收藏
- 关注
原创 编写win32时钟同步犯的低级错误
在编写跨平台时钟同步服务时,犯了一个经典低级错误,和大家共同分享原来函数大概实现是这样的:计算客户端和时间服务器误差delta值(以秒为单位),用该值修正本地时钟int update(long delta){#ifdef _WIN32 // use SetLocalTime() to change time SYSTEMTIME st; FILETIME ft; ULARGE_INTEGE
2009-06-21 15:52:00 487
原创 ACE shared memory mmap memory pool
It took me several hours editing and debugging when i want to implement info share between different processes in single machine(single write multi read) with ACE. Two principles got from debug
2009-05-23 17:24:00 721
原创 curl在win32平台下编译安装
开发需要用到ftp客户端调用,网上google选型最后确定采用Libcurl,由于想直接使用不想编译代码,于是从网上按照提示下载windows下可用的版本libcurl-7.19.3-win32-ssl-msvc.zip,结果问题出来了,运行curl.exe或者查看libcurl-7.19.3-win32-ssl-msvc/lib下的动态库都提示缺少libsasl.dll。
2009-04-07 13:29:00 2725 1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人