随笔分类 -  Windows-Socket

摘要:这是C++ SOCKET网络程序中的C/S结构之UDP "Hello World !",共两个控制台工程: [cpp] view plain copy print? /////////////////////////////////////////////////////////////////// 阅读全文
posted @ 2016-10-03 06:47 findumars 阅读(5043) 评论(0) 推荐(0) 编辑
摘要:这是C++ SOCKET网络程序中的C/S结构之TCP "Hello World !",共两个控制台工程: [cpp] view plain copy print? /////////////////////////////////////////////////////////////////// 阅读全文
posted @ 2016-10-03 06:46 findumars 阅读(563) 评论(0) 推荐(0) 编辑
摘要:在codeproject里找了许久,发现这样一个VC下载文件并显示进度条的源码,于是添加了些中文注释: 1、下载线程函数: [cpp] view plain copy print? UINT DownloadFile(LPVOID pParam) { CWnd* pwnd = AfxGetMainW 阅读全文
posted @ 2016-10-03 06:40 findumars 阅读(1611) 评论(0) 推荐(0) 编辑
摘要:在VCKBASE、CSDN里挖了许久的坟,才找到一些有点用的资料,最后自己整理出这样的个函数,方面VC实现时间同步,多的不说,自己看源码,根据自己的需要可以适当修改源码: [cpp] view plain copy print? #include <WinSock.h> #pragma commen 阅读全文
posted @ 2016-10-03 06:27 findumars 阅读(2309) 评论(0) 推荐(0) 编辑
摘要:VC下载文件显示进度条 逗比汪星人2009-09-18上传 逗比汪星人2009-09-18上传 by Koma http://blog.csd.net/wangningyu http://download.csdn.net/detail/wangningyu/1674247 阅读全文
posted @ 2016-10-03 06:22 findumars 阅读(276) 评论(0) 推荐(0) 编辑
摘要:VC模拟发送数据包-百度关键词查找 逗比汪星人2009-09-06上传 逗比汪星人2009-09-06上传 VC模拟发送数据包-百度关键词abcdef查找 详情 http://blog.csdn.net/wangningyu http://download.csdn.net/detail/wangn 阅读全文
posted @ 2016-10-03 06:06 findumars 阅读(165) 评论(0) 推荐(0) 编辑
摘要:[cpp] view plain copy [cpp] view plain copy request("www.xxxx.com", "http://www.xxxx.com/client/data.php", "{\"request\":\"userLogin\",\"posts\":[{\"l 阅读全文
posted @ 2016-10-03 05:58 findumars 阅读(1598) 评论(0) 推荐(0) 编辑
摘要:https://lftp.yar.ru/ 绝好的Socket项目 阅读全文
posted @ 2016-09-17 22:51 findumars 阅读(343) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/lh844386434/article/details/6655080 http://download.csdn.net/download/lh844386434/3513082 阅读全文
posted @ 2016-09-16 19:40 findumars 阅读(886) 评论(0) 推荐(0) 编辑
摘要:smsniff tcpreplay http://www.oschina.net/news/77025/wireshark-2-2-0 阅读全文
posted @ 2016-09-14 05:37 findumars 阅读(191) 评论(0) 推荐(0) 编辑
摘要:[cpp] view plaincopy // 模拟登陆115网盘 #include <afxinet.h> // 包含相关的头文件 /* 用抓包工具抓包可得到需要提交的数据,然后模拟提交即可。 *(有的时候需要得到cookie信息,你可以使用CInternetSession::GetCookie( 阅读全文
posted @ 2016-09-14 03:13 findumars 阅读(410) 评论(0) 推荐(0) 编辑
摘要:#include <stdio.h>#include <windows.h>#include <wininet.h>#define MAXSIZE 1024#pragma comment(lib, "Wininet.lib") void urlopen(_TCHAR*);int _tmain(int 阅读全文
posted @ 2016-08-22 01:49 findumars 阅读(4451) 评论(0) 推荐(1) 编辑
摘要:http://www.bluefoxah.org/teamtalk/new_tt_deploy.html 阅读全文
posted @ 2016-07-29 22:26 findumars 阅读(1344) 评论(0) 推荐(0) 编辑
摘要:Select在Socket编程中还是比较重要的,可是对于初学Socket的人来说都不太爱用Select写程序,他们只是习惯写诸如connect、 accept、recv或recvfrom这样的阻塞程序(所谓阻塞方式block,顾名思义,就是进程或是线程执行到这些函数时必须等待某个事件的发生,如果事件 阅读全文
posted @ 2016-07-03 06:20 findumars 阅读(2214) 评论(0) 推荐(0) 编辑
摘要:玉兔即时通信 作者:康林(msn、email:kl222@126.com;QQ:16614119) 博客:http://blog.csdn.net/kl222http://blog.csdn.net/kl222/article/details/37597807 项目位置:https://github 阅读全文
posted @ 2016-06-29 05:06 findumars 阅读(359) 评论(0) 推荐(0) 编辑
摘要:老陈有一个在外地工作的女儿,不能经常回来,老陈和她通过信件联系。他们的信会被邮递员投递到他们的信箱里。这和Socket模型非常类似。下面我就以老陈接收信件为例讲解Socket I/O模型~~~一:select模型老陈非常想看到女儿的信。以至于他每隔10分钟就下楼检查信箱,看是否有女儿的信~~~~~在 阅读全文
posted @ 2016-06-28 21:43 findumars 阅读(561) 评论(0) 推荐(0) 编辑
摘要:我认为,想要熟练掌握Linux下的TCP/IP网络编程,至少有三个层面的知识需要熟悉: 关于TCP/IP协议,建议参考Richard Stevens的《TCP/IP Illustrated,vol1》(TCP/IP详解卷1)。 关于第二层面,依然建议Richard Stevens的《Unix net 阅读全文
posted @ 2016-06-28 20:46 findumars 阅读(720) 评论(0) 推荐(0) 编辑
摘要:nanomsg,zeromq也行 阅读全文
posted @ 2016-06-27 19:10 findumars 阅读(755) 评论(0) 推荐(0) 编辑
摘要:ddd 阅读全文
posted @ 2016-06-19 06:29 findumars 阅读(231) 评论(0) 推荐(0) 编辑
摘要:ddd 阅读全文
posted @ 2016-06-03 17:32 findumars 阅读(655) 评论(0) 推荐(0) 编辑