![]() |
| | #1 |
| Registered User Join Date: Oct 2005
Posts: 10
| WSPCancelBlockingCall |
| RITZ is offline | |
| | #2 |
| Registered User Join Date: Nov 2002
Posts: 491
| The documentation states how it gets called. Either as a callback or via a service message. |
| orbitz is offline | |
| | #3 |
| Yes, my avatar is stolen Join Date: Dec 2002
Posts: 2,544
| You do not call WSP* functions. These are functions that are implemented by socket providers. You call these functions. As stated by the documentation for WSACancelBlockingCall, it is obsolete and must not be used in modern applications. It dates back from Win16. Instead of creating a thread (pre-emptive threads were not available in Win16), Windows would call a callback in the current thread so that the GUI could be kept functional. This scheme is described on this page. |
| anonytmouse is offline | |
| | #4 |
| Registered User Join Date: Oct 2005
Posts: 10
| Ok, then does anyone, have any suggestion on how to cancel a blocking call on a socket or thread? Thanks |
| RITZ is offline | |
| | #5 |
| Yes, my avatar is stolen Join Date: Dec 2002
Posts: 2,544
| Call closesocket (I meant to mention this in my original post). |
| anonytmouse is offline | |
| | #6 | |
| Registered User Join Date: Oct 2005
Posts: 10
| Quote:
| |
| RITZ is offline | |
| | #7 |
| Registered User Join Date: Nov 2002
Posts: 491
| Stop using a broken API then. |
| orbitz is offline | |
| | #8 |
| Registered User Join Date: Oct 2005
Posts: 10
| Broken API? O.o It isn't my socket... |
| RITZ is offline | |
| | #9 |
| Registered User Join Date: Nov 2002
Posts: 491
| I don't know what that means. |
| orbitz is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|