RequestFriendDetail.cpp
资源名称:src.zip [点击查看]
上传用户:guangzhiyw
上传日期:2007-01-09
资源大小:495k
文件大小:1k
源码类别:
ICQ/即时通讯
开发平台:
Visual C++
- #include "stdafx.h"
- #include "msg.h"
- #include "common.h"
- #include "Client.h"
- UINT RequestFriendDetail(LPVOID param)
- {
- CClientApp* pApp=(CClientApp*)AfxGetApp();
- Sleep(4000);
- for(int i=0;i<pApp->m_aUserInfo.GetSize()&&pApp->m_bOnlineState;i++)
- {
- if(pApp->m_aUserInfo.GetAt(i)->HaveDetail==0)
- {
- CMsg1 msg;
- msg.index=FRIEND_DETAIL;
- msg.MyId=pApp->m_uCurrentUserID;
- msg.tarIP=pApp->m_uServerIP;
- msg.nPort=pApp->m_uServerPort;
- msg.FriendId=pApp->m_aUserInfo.GetAt(i)->Id;
- pApp->m_Socket.SendDataDirect(&msg);
- Sleep(2000);
- }
- }
- return 1;
- }