paragk11
June 4th, 2004, 04:38 AM
Hi,
I am using an application which is similar to chat application. I want to log all the text on chat window.I have hooked send() Recv() and closesocket() with other functions.
The problem now I am facing is if user types some text and immediately closes the window ,I can not get the buffer in send () as it's closesocket gets called .
If I close the hook engine then the message goes to other end properly .With hook engine on ,If user types and waits or does not close the window then mesage gets to other end and also gets logged .
Is there any way to make sure that all the request (data) on connected socket is received in send() before calling it's closesocket().
OR how can I wait in hooked send() or closesocket() to make sure that all the send request is processed before closing the connected socket?? OR
before calling the original send() and closesocket()?
I am using an application which is similar to chat application. I want to log all the text on chat window.I have hooked send() Recv() and closesocket() with other functions.
The problem now I am facing is if user types some text and immediately closes the window ,I can not get the buffer in send () as it's closesocket gets called .
If I close the hook engine then the message goes to other end properly .With hook engine on ,If user types and waits or does not close the window then mesage gets to other end and also gets logged .
Is there any way to make sure that all the request (data) on connected socket is received in send() before calling it's closesocket().
OR how can I wait in hooked send() or closesocket() to make sure that all the send request is processed before closing the connected socket?? OR
before calling the original send() and closesocket()?