The Win32 SDK says of getsockname() that it can return the following error reason:
Which implies that the call might hang under those circumstances if the socket is not set to be non-blocking. So set the socket to be non-blocking for that call and you'll probably get that error instead of it hanging (the documentation is not completely clear on that point, as usual).
- tye
In reply to Re: getsockaddr() blocks indefinitely? (TFM)
by tye
in thread getsockname() blocks indefinitely?
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |