| Previous | Next |
| WSAEDISCON | WSAECANCELLED |
WSAENOMORE
WSAENOMORE marks the end of a Winsock namespace enumeration performed with WSALookupServiceNext. It is not evidence that the namespace provider crashed or that a network query timed out: the lookup handle simply has no further result to return.
A legacy duplicate code
Winsock 2 defines both WSAENOMORE and WSA_E_NO_MORE. Microsoft documents the first as a conflicting legacy value and recommends that applications check for both for compatibility with namespace providers. New logic should treat the two as the same terminal enumeration state.
Correct loop handling
- Call
WSALookupServiceNextuntil a result or error is returned. - On either “no more” code, stop enumeration normally.
- Call
WSALookupServiceEndto release the lookup handle. - Do not retry the same
Nextcall in a tight loop expecting a new item.
Compare this with WSANO_DATA, where a name can exist but no data matches the requested restrictions. End of enumeration and “no matching data” are different states.
Microsoft: WSALookupServiceNext · Microsoft: Winsock error codes
Looking for a different code? Search another status or error code.