#include
#include
#include
#pragma comment(lib,"ws2_32")
#define RefreshTimes 10 //刷新次数
char
host[128];
char
path[128];
// 函数声明
DWORD
WINAPI SendThread(
LPVOID
lpParam);
void
SetParam();
void
main(
int
argc,
char
* argv[])
{
HANDLE
hThread[RefreshTimes];
DWORD
dwThread[RefreshTimes];
int
i;
SetParam(); // 设置相关参数
// 循环创建线程完成数据发送功能
for
( i = 0 ; i
{
hThread[i] = CreateThread(NULL,0,SendThread,(LPVOID
)i,0,&dwThread[i]);
if
( hThread == NULL )
{
printf("\tCreateThread Failed.\n"
);
e