="客户端:"; str=str+buff; ListInfo=str; } return0;}//----------------------------------------//数据侦听函数,用于侦听功能实现DWORDWINAPIlistenthread(LPVOIDlpparam){ SOCKETm_socket=(SOCKET)lpparam;?intret;?ret=listen(m_socket,30);//启动服务器侦听功能,最大连接30个if(ret==SOCKET_ERROR)?{ ListInfo=_T("ListenError!");return0;?} SOCKETs;?s=accept(m_socket,NULL,NULL);//阻塞,等待连接请求?DWORDdwthread;//如果客户端连接请求,创建发送和接受线程?::CreateThread(NULL,0,Recvthread,(LPVOID)s,0,&dwthread); ::CreateThread(NULL,0,Sendthread,(LPVOID)s,0,&dwthread);?return0;}///////////////////////////////////////////////////////////////////////////////CAboutDlgdialogusedforAppAboutclassCAboutDlg:Dialog{public:?CAboutDlg();//DialogData?//{{AFX_DATA(CAboutDlg)?enum{IDD=IDD_ABOUTBOX};?//}}AFX_DATA?//ClassWizardgeneratedvirtualfunctionoverrides?//{{AFX_VIRTUAL(CAboutDlg)