Click here to Skip to main content
16,005,066 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: RichEdit Errors Pin
Hamid_RT25-May-06 20:40
Hamid_RT25-May-06 20:40 
GeneralRe: RichEdit Errors Pin
VinayCool25-May-06 21:09
VinayCool25-May-06 21:09 
QuestionC++ Certification Pin
Sarath C25-May-06 19:06
Sarath C25-May-06 19:06 
AnswerRe: C++ Certification Pin
anwer_skk25-May-06 19:48
anwer_skk25-May-06 19:48 
GeneralRe: C++ Certification Pin
Renjith Ramachandran26-May-06 2:12
Renjith Ramachandran26-May-06 2:12 
GeneralRe: C++ Certification Pin
anwer_skk26-May-06 2:50
anwer_skk26-May-06 2:50 
GeneralRe: C++ Certification Pin
David Crow26-May-06 3:07
David Crow26-May-06 3:07 
QuestionAcceptEx and WSARecv question in IOCP Pin
followait25-May-06 19:01
followait25-May-06 19:01 
First, I posted a AcceptEx to IOCP for connection only, not to receive any data by this call (dwReceiveDataLength=0).
In the processing of AcceptEx completion, I called WSARecv.
There is trouble here:

If the client called connect, then called send after it.
WSARecv will return 0, the data is received.
So I use a while(WSARecv(...)==0) to receive data, while the loop end, I checked that WSAGetLastError()==WSA_IO_PENDING. It seems all right till now. Then suppose that the client doesn't send any data, but the next GetQueuedCompletionStatus will return TRUE for a WSARecv completion, but the received data in the buf is nonsense. Why the GetQueuedCompletionStatus will work this way?
AnswerRe: AcceptEx and WSARecv question in IOCP Pin
valikac25-May-06 20:02
valikac25-May-06 20:02 
GeneralRe: AcceptEx and WSARecv question in IOCP Pin
followait25-May-06 21:11
followait25-May-06 21:11 
GeneralRe: AcceptEx and WSARecv question in IOCP Pin
valikac26-May-06 7:02
valikac26-May-06 7:02 
GeneralRe: AcceptEx and WSARecv question in IOCP Pin
followait26-May-06 12:00
followait26-May-06 12:00 
GeneralRe: AcceptEx and WSARecv question in IOCP Pin
valikac26-May-06 12:11
valikac26-May-06 12:11 
GeneralRe: AcceptEx and WSARecv question in IOCP Pin
followait26-May-06 23:10
followait26-May-06 23:10 
GeneralRe: AcceptEx and WSARecv question in IOCP Pin
valikac27-May-06 18:47
valikac27-May-06 18:47 
GeneralRe: AcceptEx and WSARecv question in IOCP Pin
followait27-May-06 20:25
followait27-May-06 20:25 
QuestionType Conversion Pin
satsumatable25-May-06 18:56
satsumatable25-May-06 18:56 
AnswerRe: Type Conversion [modified] Pin
Stephen Hewitt25-May-06 21:27
Stephen Hewitt25-May-06 21:27 
GeneralRe: Type Conversion [modified] Pin
satsumatable26-May-06 17:01
satsumatable26-May-06 17:01 
GeneralRe: Type Conversion [modified] Pin
Stephen Hewitt26-May-06 17:46
Stephen Hewitt26-May-06 17:46 
Questionswap Red and Blue in GDI+ Pin
ilidan25-May-06 18:45
ilidan25-May-06 18:45 
AnswerRe: swap Red and Blue in GDI+ Pin
_anil_25-May-06 19:37
_anil_25-May-06 19:37 
GeneralRe: swap Red and Blue in GDI+ Pin
ilidan25-May-06 19:50
ilidan25-May-06 19:50 
GeneralRe: swap Red and Blue in GDI+ Pin
_anil_25-May-06 20:01
_anil_25-May-06 20:01 
GeneralRe: swap Red and Blue in GDI+ Pin
ilidan25-May-06 20:14
ilidan25-May-06 20:14 

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.