Click here to Skip to main content
15,899,475 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: m_ListBuf.push_back(pWsabuf); Why can't it work? [modified] Pin
followait24-May-06 23:52
followait24-May-06 23:52 
AnswerRe: m_ListBuf.push_back(pWsabuf); Why can't it work? [modified] Pin
Sarath C24-May-06 22:15
Sarath C24-May-06 22:15 
GeneralRe: m_ListBuf.push_back(pWsabuf); Why can't it work? [modified] Pin
followait24-May-06 22:34
followait24-May-06 22:34 
GeneralRe: m_ListBuf.push_back(pWsabuf); Why can't it work? [modified] Pin
followait24-May-06 23:51
followait24-May-06 23:51 
GeneralRe: m_ListBuf.push_back(pWsabuf); Why can't it work? [modified] Pin
Hamid_RT25-May-06 0:01
Hamid_RT25-May-06 0:01 
GeneralRe: m_ListBuf.push_back(pWsabuf); Why can't it work? [modified] Pin
followait25-May-06 5:06
followait25-May-06 5:06 
AnswerRe: m_ListBuf.push_back(pWsabuf); Why can't it work? [modified] Pin
Eytukan24-May-06 22:19
Eytukan24-May-06 22:19 
GeneralRe: m_ListBuf.push_back(pWsabuf); Why can't it work? [modified] Pin
followait24-May-06 22:38
followait24-May-06 22:38 
I declare it in a class

class PerIOData : public OVERLAPPED
{
public:

int m_Operation;
SOCKET m_Socket;
WSABUF *m_pBuf;
int m_BufNum;
int m_NextStart; std::list<wsabuf*> m_ListBuf;
};
use like this, in a thread:
PerIOData *p=new PerIOData
...
p->m_pBuf=new WSABUF;
p->m_pBuf->len=128;
p->m_pBuf->buf=new char[128];

when data is received through IOCP:
p->m_ListBuf.push_back(p->m_pBuf);
GeneralRe: m_ListBuf.push_back(pWsabuf); Why can't it work? [modified] Pin
Eytukan24-May-06 23:09
Eytukan24-May-06 23:09 
GeneralRe: m_ListBuf.push_back(pWsabuf); Why can't it work? [modified] Pin
Sarath C24-May-06 22:42
Sarath C24-May-06 22:42 
GeneralRe: m_ListBuf.push_back(pWsabuf); Why can't it work? [modified] Pin
followait24-May-06 23:52
followait24-May-06 23:52 
AnswerRe: m_ListBuf.push_back(pWsabuf); Why can't it work? [modified] Pin
Hamid_RT24-May-06 22:21
Hamid_RT24-May-06 22:21 
GeneralRe: m_ListBuf.push_back(pWsabuf); Why can't it work? [modified] Pin
followait24-May-06 22:37
followait24-May-06 22:37 
GeneralRe: m_ListBuf.push_back(pWsabuf); Why can't it work? [modified] Pin
Hamid_RT24-May-06 23:52
Hamid_RT24-May-06 23:52 
QuestionRunning an exe file. Pin
Suganya.D24-May-06 21:46
Suganya.D24-May-06 21:46 
AnswerRe: Running an exe file. Pin
Hamid_RT24-May-06 21:54
Hamid_RT24-May-06 21:54 
AnswerRe: Running an exe file. Pin
Sarath C24-May-06 22:00
Sarath C24-May-06 22:00 
AnswerRe: Running an exe file. Pin
G Haranadh24-May-06 23:37
G Haranadh24-May-06 23:37 
GeneralRe: Running an exe file. Pin
Suganya.D25-May-06 2:17
Suganya.D25-May-06 2:17 
QuestionRe: Running an exe file. Pin
David Crow25-May-06 4:21
David Crow25-May-06 4:21 
QuestionDo we need dll Files for running EXE File Pin
k.n.ruban24-May-06 21:40
k.n.ruban24-May-06 21:40 
AnswerRe: Do we need dll Files for running EXE File Pin
Naveen24-May-06 21:43
Naveen24-May-06 21:43 
AnswerRe: Do we need dll Files for running EXE File Pin
Nibu babu thomas24-May-06 21:46
Nibu babu thomas24-May-06 21:46 
AnswerRe: Do we need dll Files for running EXE File Pin
Hamid_RT24-May-06 21:52
Hamid_RT24-May-06 21:52 
GeneralRe: Do we need dll Files for running EXE File Pin
k.n.ruban25-May-06 1:30
k.n.ruban25-May-06 1:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.