Click here to Skip to main content
15,916,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow cartoon move on the screen Pin
sunju7-Oct-03 18:35
sunju7-Oct-03 18:35 
Generalauto restart application Pin
GeneKwok7-Oct-03 17:37
GeneKwok7-Oct-03 17:37 
GeneralRe: auto restart application Pin
valikac7-Oct-03 17:53
valikac7-Oct-03 17:53 
GeneralRe: auto restart application Pin
GeneKwok7-Oct-03 19:14
GeneKwok7-Oct-03 19:14 
GeneralRe: auto restart application Pin
Toni787-Oct-03 20:10
Toni787-Oct-03 20:10 
GeneralRe: auto restart application Pin
GeneKwok7-Oct-03 23:22
GeneKwok7-Oct-03 23:22 
GeneralRe: auto restart application Pin
Toni788-Oct-03 8:04
Toni788-Oct-03 8:04 
GeneralInteresting Problem with IOCP and AcceptEx() :: Winsock Pin
valikac7-Oct-03 17:12
valikac7-Oct-03 17:12 
Hi,

I am working on a winsock applications that utilize IOCP and AcceptEx() winsock extension. Basically, the program is a client/server and can send and receive data. Here is the program.

- server activates IOCP and AcceptEx() listening on port 1000
- client activates IOCP and AcceptEx() listening on port 1000
...
- server sends a package to client (server -> data -> client)
...
- server processes incoming socket from AcceptEx().

At this point, the incoming data is valid. Everything looks good and valid. I tested this via sending of ASCII test. Everything looks valid.

- client process the data and sends data back to server (client -> data -> server).

For some reason, the server never receives the data. IOCP acknowledged the WSASend() post. It even returns the size of the packet. However, the server never receives the packet.

At this point, I have no idea what is causing the problem. At any given time, both client and server can make NEW connections and send data with the initial packet. However, once the other side receives the incoming connection, processes data, and sends back a response, the response DOES NOT arrive.

Please post if you have any idea as to what is causing this problem. I am not too familiar with AcceptEx() in terms of any specific API that must be called once a socket has been accepted. I did implement setsockopt().

Thanks,
Kuphryn
GeneralRe: Interesting Problem with IOCP and AcceptEx() :: Winsock Pin
cmk7-Oct-03 19:17
cmk7-Oct-03 19:17 
GeneralRe: Interesting Problem with IOCP and AcceptEx() :: Winsock Pin
valikac8-Oct-03 5:39
valikac8-Oct-03 5:39 
GeneralOutput box. Pin
esepich7-Oct-03 15:23
esepich7-Oct-03 15:23 
GeneralRe: Output box. Pin
Mike Danberg7-Oct-03 17:07
Mike Danberg7-Oct-03 17:07 
GeneralRe: Output box. Pin
Blake Coverett7-Oct-03 20:35
Blake Coverett7-Oct-03 20:35 
Questionhow to disable a item of TabCtrl?? Pin
Grrrr7-Oct-03 14:55
Grrrr7-Oct-03 14:55 
AnswerRe: how to disable a item of TabCtrl?? Pin
KaЯl8-Oct-03 3:18
KaЯl8-Oct-03 3:18 
Generalrunning c++ as NT service Pin
lasher1697-Oct-03 14:24
lasher1697-Oct-03 14:24 
GeneralRe: running c++ as NT service Pin
Mike Dimmick7-Oct-03 23:24
Mike Dimmick7-Oct-03 23:24 
GeneralI want to know which control is focused! Pin
vancouver7777-Oct-03 13:51
vancouver7777-Oct-03 13:51 
GeneralRe: I want to know which control is focused! Pin
Abin7-Oct-03 14:08
Abin7-Oct-03 14:08 
GeneralMonthly payment Pin
iasaber7-Oct-03 13:27
iasaber7-Oct-03 13:27 
GeneralRe: Monthly payment Pin
Mike Danberg7-Oct-03 17:55
Mike Danberg7-Oct-03 17:55 
GeneralRe: Monthly payment Pin
armentage8-Oct-03 8:18
armentage8-Oct-03 8:18 
Questionwhat to implement for the "open with" option? Pin
Binayak7-Oct-03 12:41
Binayak7-Oct-03 12:41 
General64 bit processor Pin
DougW487-Oct-03 11:52
DougW487-Oct-03 11:52 
GeneralRe: 64 bit processor Pin
Terry O'Nolley7-Oct-03 14:08
Terry O'Nolley7-Oct-03 14:08 

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.