Hey everyone. I actually have a programming question this time . Does anybody know if there's a way of detecting if/when bytes are recieved/sent on any currently open socket?
Hey everyone. I actually have a programming question this time . Does anybody know if there's a way of detecting if/when bytes are recieved/sent on any currently open socket?
Depends how you set the socket up......if you set up the socket asynchronously, then your program will be notified when a socket is ready to be read.......look it up on a few tuts...Originally posted by face_master
Hey everyone. I actually have a programming question this time . Does anybody know if there's a way of detecting if/when bytes are recieved/sent on any currently open socket?
I'm not talking about any socket that i've created - i'm talking about detecting if bytes have been transfered on any currently connected socket which was created by other programs other than the one i'm writing.
eg.
- You have explorer downloading a file of 1024 bytes
- You have iMesh downloading a file of 2048 bytes
(Both of the above programs are running on different sockets; both not created by my program).
After these are both downloaded, the program would have detected that 3072 bytes have been transfered.
Is this possible?
Yes....but its pretty difficult and very badly documentd (IMHO)..Originally posted by face_master
I'm not talking about any socket that i've created - i'm talking about detecting if bytes have been transfered on any currently connected socket which was created by other programs other than the one i'm writing.
eg.
- You have explorer downloading a file of 1024 bytes
- You have iMesh downloading a file of 2048 bytes
(Both of the above programs are running on different sockets; both not created by my program).
After these are both downloaded, the program would have detected that 3072 bytes have been transfered.
Is this possible?
Windows allows for a layered WSP (Winsock Service Provider)....this software component will be called when there's Winsock activity before the WS2_32.dll...therefore you can intercept, modify & monitor packets of info...
Like I said, its really badly documented, but if its what your interested in, that's the way to go
Ah, thankyou. I think I found the right information in my book about LSP's.