12 2018 档案

摘要:bittorrent是一个文件分发协议,它使用url来定位文件而且跟web服务无缝集成。当有多个人同时下载同一个文件时,下载者之间可以互相上传自己已有的那部分文件,让一个文件支持很多人同时下载却只增加小量的带宽负担变成可能,这就是bt协议相比http协议的优... 阅读全文

posted @ 2018-12-28 18:44 #大囚长# 阅读(754) 评论(0) 推荐(0)

摘要:#include #include #include "unistd.h"using namespace std;int main(){ while (true) { cout << "hello linux!" << endl; sleep(1); }... 阅读全文

posted @ 2018-12-28 16:32 #大囚长# 阅读(957) 评论(0) 推荐(0)

摘要:转载:https://blog.csdn.net/kikaylee/article/details/51395360/*@描述:一个简单的Windows守护进程的例子(C++版本)@作者:kikaylee@日期:2016-05-13 10:30*/#incl... 阅读全文

posted @ 2018-12-28 15:42 #大囚长# 阅读(725) 评论(0) 推荐(0)

摘要:学习计算机,往往先从Windows环境下学习编程,学习编程,往往从C学起,学习C,往往又从控制台程序学习,何为控制台,就是那个黑框白字的界面。对于这样一个最初认为奇陋无比而现在认为无所不能的编程平台,有时候需要将界面隐藏起来。那么如何做呢?方... 阅读全文

posted @ 2018-12-28 15:37 #大囚长# 阅读(2999) 评论(0) 推荐(0)

摘要:参考文章: https://www.cnblogs.com/XiHua/p/5028329.html 阅读全文

posted @ 2018-12-28 14:58 #大囚长# 阅读(2440) 评论(0) 推荐(0)

摘要:转载:https://blog.csdn.net/yss28/article/details/53646627《Win32多线程程序设计》–Jim Beveridge & Robert Wiener “等待某个什么东西”是线程常常需要做的事。等待是线程的“... 阅读全文

posted @ 2018-12-28 14:05 #大囚长# 阅读(791) 评论(0) 推荐(0)

摘要:/* 实现功能:通过epoll, 处理多个socket * 监听一个端口,监听到有链接时,添加到epoll_event * xs */ #include #include #include #include #include #include #includ... 阅读全文

posted @ 2018-12-28 10:08 #大囚长# 阅读(2052) 评论(0) 推荐(0)

摘要:参考http://blog.csdn.net/fengningning/article/details/2306650?locationNum=1&fps=1windows.h解构刚开头的一段注释是对该头文件的描述:/*++ BUILD Version: 0... 阅读全文

posted @ 2018-12-28 10:01 #大囚长# 阅读(2559) 评论(0) 推荐(0)

摘要:转载:https://www.cnblogs.com/swunield/articles/3893250.html进程通常被定义为一个正在运行的程序的实例,它由两个部分组成:一个是操作系统用来管理进程的内核对象。内核对象也是系统用来存放关于进程的统计信息的地... 阅读全文

posted @ 2018-12-27 16:11 #大囚长# 阅读(9491) 评论(0) 推荐(0)

摘要:#include "pch.h"#include #include #include using namespace std;int main(){ Sleep(3000); system("start notepad"); Sleep(3000); // ... 阅读全文

posted @ 2018-12-27 14:01 #大囚长# 阅读(402) 评论(0) 推荐(0)

摘要:使用这个github上的项目:https://github.com/L3cr0f/DccwBypassUAC可以自行编译全程UAC不介入,没反应。测试:权限提升真实有效 阅读全文

posted @ 2018-12-27 10:57 #大囚长# 阅读(2532) 评论(0) 推荐(0)

摘要:simpleini项目地址:https://github.com/brofield/simpleini下载,新建项目,并将SimpleIni.h文件通过包含目录的方式加载进来。创建test.ini文件,内容如下:[server]root = 10.1.1.1... 阅读全文

posted @ 2018-12-26 18:00 #大囚长# 阅读(892) 评论(0) 推荐(0)

摘要:首先下载tinyxml2 7.0.1库:https://github.com/leethomason/tinyxml2/releases打开tinyxml2,然后升级sdk,解决方案->重定解决方案目标,升级。然后编译生成dll和库文件,在tinyxml2\... 阅读全文

posted @ 2018-12-26 16:47 #大囚长# 阅读(1821) 评论(0) 推荐(0)

摘要:参考文章:https://blog.csdn.net/tangcaijun/article/details/42110319首先下载库:https://www.cryptopp.com/#download使用vs2017打开cryptest.sln文件,解决... 阅读全文

posted @ 2018-12-26 14:57 #大囚长# 阅读(3586) 评论(0) 推荐(0)

摘要:1.项目必须是win322.生成的lib_json.lib放到工程目录下3.incldue的头文件放到工程目录,然后设置工程->属性->配置属性->vc++目录->包含目录4.工程->属性->配置属性->c/c+±>代码生成->运行库,设置运行库为多线程调试... 阅读全文

posted @ 2018-12-26 11:24 #大囚长# 阅读(1166) 评论(0) 推荐(0)

摘要:#include "pch.h"#include #include #include using namespace std;int i;void signalHandle(int signum){ cout << "Interrupt signal(" <... 阅读全文

posted @ 2018-12-25 16:44 #大囚长# 阅读(225) 评论(0) 推荐(0)

摘要:服务端:#include "pch.h"#include#include#include #define CONNECT_NUM_MAX 10#pragma comment(lib, "ws2_32.lib")using namespace std;int ... 阅读全文

posted @ 2018-12-24 19:06 #大囚长# 阅读(697) 评论(0) 推荐(0)

摘要:安装mysql8.0 x64创建test数据库,user表,插入数据如下:+----+------+----------+-----------------+| id | name | password | email |+----+--... 阅读全文

posted @ 2018-12-24 16:02 #大囚长# 阅读(1486) 评论(1) 推荐(0)

摘要:编译命令gcc -W -Wall -lpthread -o httpd httpd.c源码#include #include #include #include #include #include #include #include #include #in... 阅读全文

posted @ 2018-12-21 10:02 #大囚长# 阅读(192) 评论(0) 推荐(0)

摘要:int a = 1; int b = 2; cout << "a: "<< a << endl; cout << "b: "<< b << endl; a = a ^ b; b = a ^ b; a = a ^ b; cout << "a: " << a ... 阅读全文

posted @ 2018-12-19 10:59 #大囚长# 阅读(293) 评论(0) 推荐(0)

摘要:metrcis输出collector.gopackage mainimport ( "github.com/prometheus/client_golang/prometheus")//Define a struct for you collector th... 阅读全文

posted @ 2018-12-11 15:34 #大囚长# 阅读(749) 评论(0) 推荐(0)

摘要:文件RewriteEngine OnRewriteCond %{HTTPS} offRewriteRule (.) https://%{SERVER_NAME}/$1 [R,L]命题substitute the * with the $fqdn facter... 阅读全文

posted @ 2018-12-04 10:08 #大囚长# 阅读(115) 评论(0) 推荐(0)