Demo entry 6713707

c

   

Submitted by anonymous on Feb 09, 2018 at 10:06
Language: C++. Code size: 614 Bytes.

CThreadQueue(QUEUE_HOST* pHost,                             //远程主机
			 int iTimeout = 60,                             //队列节点超时值(秒)
			 ON_VALIDRECVDATA pValidRecvData = NULL,        //默认: NULL - 不对返回数据校验
			 int nThreadCount = 1,                          //队列线程数
			 int nSocketCount = 4,                          //每个线程监控的socket数
			 bool bShortConnMode = false,                   //强制socket短连接模式
			 int nRetryOnSendError = 0,                     //发送失败时的重发次数
			 const char* szForceSingleThreadName = NULL,  	//不为NULL时,仅启动单一线程(即使是多进程环境)
			 const char* szAutoHeartbeat = NULL);			//socket自动发的心跳包(每30s)

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).