- 博客(11)
- 资源 (22)
- 收藏
- 关注
原创 ZeroMQ Lazy Pirate Pattern
服务端: #include #include #include #include using namespace std;#pragma comment(lib,"libzmq.lib")void main(int argc,TCHAR*argv[]){ void *ctx; ctx = zmq_init(1); assert(ctx);
2011-10-31 16:06:12 1062
原创 zmq_device()
DeviceClient端:#include #include #include #include using namespace std;#pragma comment(lib,"libzmq.lib")void main(int argc,TCHAR*argv[]){ //初始化 void *ctx; ctx = zmq_init(1);
2011-10-28 11:47:59 2514 2
原创 求某个事件经历的具体时间 QueryPerformanceFrequency QueryPerformanceCounter
求某个事件经历的具体时间:#include #include #include using namespace std;/**************************求某个事件经历的具体时间**********************************/void main(int argc,TCHAR*argv[]){ LARGE_INTE
2011-10-24 16:31:36 936
原创 【ZeroMQ】轮询zmq_poll()的使用
注意:此时不可以用ZMQ_REP ZMQ_REQ。 因为ZMQ_REQ发送一次数据后,如果没有收到数据,不能再次发送数据。 ZmqIOServer端:#include #include #include #include using namespace std;#pragma comment(lib,"libzmq.lib")void main(in
2011-10-24 14:15:05 10785 1
原创 获取主机信息
#include #include #include #include using namespace std;#pragma comment(lib,"Ws2_32.lib")#define HOSTNAME_LEN 256void main(int argc,TCHAR*argv[]){ WORD wVersionRequested; WSA
2011-10-21 17:52:07 855
原创 WinSock I/O 之Select
IOServer端:#include #include #include using namespace std;#pragma comment(lib,"Ws2_32.lib")#define PORT 6000#define MSGSIZE 256int g_iTotalConn = 0;SOCKET g_cltSocketArr[FD_SET
2011-10-21 15:30:16 664
原创 .[ZeroMQ] messaging pattern -- publish/subscribe
ZeroMQ 中规定了几个pattern用法,除此之外,不能乱用。publish/subscribe, 一个one-to-many的消息发布。一个publisher,多个subscriber。如果pub发布消息的时候,sub没有连接上来,则此消息,sub是收不到的。注意:subscribe 初始化的时候一定要设置filter,否则收不到任何消息。 ServerP
2011-10-20 11:19:31 1155
原创 [ZeroMQ] multipart message
数据可能很长,比如一个大文件,所以可以将数据分成多个 message 来发送,但逻辑上知道这些 message 应该合并成一个处理。写了个小程序,fclient 上传一个文件给 fserver。 FSever端:#include #include #include #include using namespace std;#pragma commen
2011-10-20 11:17:13 2346
原创 ZeroMQ 最简单使用
Server端:#include #include #include #include using namespace std;#pragma comment(lib,"libzmq.lib")void main(int argc,TCHAR*
2011-10-19 15:38:51 1126
原创 容器Vector的使用
#include #include #include #include using namespace std;#define VEC_COUNT 3void main(int argc,TCHAR*argv[]){//1.构造函数
2011-10-13 22:40:02 631
原创 操作符重载++类成员+全局
#include #include using namespace std;class Complex{public: Complex(double real = 0,double img = 0) : m_real(real),m_img(img)
2011-10-12 21:27:20 785
iso 14496-3.pdf
2021-02-18
HexEditor0.9.6.0g.rar
2019-11-01
抓取的https session连接恢复的数据包
2017-09-12
抓取的HTTPS数据包(新)
2017-09-12
curl 发送HEAD请求时的数据包
2017-01-05
dig 有edns_client_subnet的pcap包
2013-11-28
dig 没有edns_client_subnet的pcap包
2013-11-28
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人