- 博客(5)
- 资源 (2)
- 收藏
- 关注
转载 让C/C++程序一次编译可以发布到多版本Linux之上
最近页游开放平台比较多, 每个平台要求的Linux版本各不相同, 这给开发人员部署服务器带来了很大的困难. 在本机Linux编译的程序,发布时即便将依赖的so附带到目标Linux环境,仍然会碰到依赖及版本问题,例如:[root@localhost bin]# ldd wkcenter ./wkcenter: /usr/lib/libstdc++.so.6: version `GLIBC
2013-07-19 12:33:37 991
转载 SOL_BINDTODEVICE
SOL_BINDTODEVICE是setsockopt设置中的一种套接口选项.当套接口被绑定到指定的网络设备接口之后,只有来自该设备的数据包才会被套接口处理。 在Linux下,对网络设备的引用是通过struct ifreq来完成.通过设置structifreq中的ifr_name[IFNAMSIZ]来指定网络设备接口.举例如下:struct ifreq in
2013-07-15 15:16:10 781
原创 vs2012 编译独立的exe运行。
vs2010 编译文件的时候,会引用msvcr100.dll,去掉他的办法是设置运行库位MT或者MTD如图:
2013-07-10 23:59:11 855
转载 Windows性能计数器统计网络流量
使用性能计数器的基本步骤是:1.打开计数器PdhOpenQuery2.为计数器句柄分配空间3.把感兴趣的计数器添加进来PdhAddCounter4.收集数据PdhCollectQueryData5.得到计数器的数值PdhGetFormattedCounterValue6.关闭计数器PdhCloseQuery#include #include #include
2013-07-04 14:13:02 3737
原创 linux 远程shell 实现
实现了一个 shell server的功能,每当有客户端连接的时候,都会为远程客户端分配shell。使用命令:启动服务端 ./a.out server启动客户端: ./a.out client#include #include #include #include #include #include #include #include #include #
2013-07-03 17:19:35 859
A盾电脑防护
2012-05-28
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人