if(nCount == 2)
sprintf(sendbuf,"GET %s/CPing/update/http.php?name=%s&lost=%f HTTP/1.1\r\nHOST: %s\r\nCONNECTION: CLOSED\r\n\r\n",strIP,strURL,pRet[1],strIP);
else if(nCount == 6)
sprintf(sendbuf,"GET %s/CPing/update/http.php?name=%s&lost=%f&avg=%f HTTP/1.1\r\nHOST: %s\r\nCONNECTION: CLOSED\r\n\r\n",strIP,strURL,pRet[1],pRet[3],strIP);
else
sprintf(sendbuf,"GET %s/CPing/update/http.php?name=%s&lost=-1&lost=-1 HTTP/1.1\r\nHOST: %s\r\nCONNECTION: CLOSED\r\n\r\n",strIP,strURL,strIP);
// ProcessSQLUpdate(strURL,strIP,nPort,sendbuf);
/*
printf("Min Value: %f\n",pRet[2]);
printf("Avg Value: %f\n",pRet[3]);
printf("Max Value: %f\n",pRet[4]);
printf("MDev Value: %f\n",pRet[5]);
*/
return 0;
}</span>
C++ Primer Plus 第6版 中文版 清晰有书签PDF+源代码
将C语言梳理一下,分布在以下10个章节中:
Linux-C成长之路(十):其他高级议题