Naumaan
June 3rd, 2004, 07:16 AM
HI
I m developing a small application using IOCompletion Port
every thing is working fine but if i m sending messages with WSASend function and Client is not receiving due to machine load,hang or extra load then what will be the behaviour of WSASend. Because when we post WSASend and it returns WSA_IO_PENDING then it means our message is posted successfully and we will be notifyed when send is complete by GetQueuedCompletionStatus.
So my problem is that when i send lot of messages and receiving end did not receive message then my computer's Non paged memory increses and after some time my machiene show abnormal behaviour.
I just want to know that how can i adjust sending message timeout .Because if receiving end did not receive a message within that time period then i will stop to send further messages or do some appropriate action .
I have seen setsockoption with SO_SNDTIMEO but it did not solve my problem.
Please help me .
thanks in advance
I m developing a small application using IOCompletion Port
every thing is working fine but if i m sending messages with WSASend function and Client is not receiving due to machine load,hang or extra load then what will be the behaviour of WSASend. Because when we post WSASend and it returns WSA_IO_PENDING then it means our message is posted successfully and we will be notifyed when send is complete by GetQueuedCompletionStatus.
So my problem is that when i send lot of messages and receiving end did not receive message then my computer's Non paged memory increses and after some time my machiene show abnormal behaviour.
I just want to know that how can i adjust sending message timeout .Because if receiving end did not receive a message within that time period then i will stop to send further messages or do some appropriate action .
I have seen setsockoption with SO_SNDTIMEO but it did not solve my problem.
Please help me .
thanks in advance