Intercepting sockets in winsock

Started by
2 comments, last by nevernomore 18 years, 10 months ago
Is it possible to intercept a socket in winsock? (eg looking at whats being sent / recieved in the socket and sending things myself) If so are there any simple examples about that I can have a look at or any tutorials? I haven't had much luck from searching about.
Advertisement
I have been searching alot and it seems that I need to set up a hook with WSASetBlockingHook() but I'm having no luck finding a basic c example to get me started :(
Hi,

According to site, the function is not to be made of use with Winsock 2. I do recall trying to use this function myself in the past without success. Maybe someone else could provide you with some more help.

Later,

GCS584

P.S. - MSDN is often of great help
http://www.microsoft.com/msj/0599/LayeredService/LayeredService.aspx

The platform SDK has a sample.

This topic is closed to new replies.

Advertisement