- 博客(4)
- 收藏
- 关注
原创 linux 获取程序运行的运行路径
char * CMainServer::get_exe_path( char * buf, int count){ int i; int rslt = readlink("/proc/self/exe", buf, count - 1); if (rslt = count - 1)) { return NULL; }
2014-02-27 16:18:13 757
原创 range断点续传
Client request:Server通过请求头中的Range: bytes=0-xxxserver response : Content-Range: bytes 0-100/2350
2014-02-18 17:31:30 631
转载 wget gzip
Apache启用gzip/deflate或者Nginx启用gzip之后用wget测试的话需要加上--header="accept-encoding:gzip"用curl则加上--compressed浪费了20分钟在这选项上,milk关于gzip和deflate有两篇文章(1和2), 作者应该是一个人,明显是从1毛跳去了性浪..
2014-02-13 16:00:38 1306
原创 linux 简单的下载down
#include #include #include #include #include #include #include #include #include #include #include #include #include int main ( int argc, char *argv[] ){int sockfd;st
2014-02-13 11:07:13 761
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人