Skip to main content
GameDev.net gamedev.net
🔒 Locked

WSAGetLastError() returns 5? What does this mean? [SOLVED]

Started by Subotron Jun 18, 2006 at 5:10 PM 1 replies 4.3k views
Original Post
Subotron
Subotron
I'm currently making a server/client application, using Winsock2 and C++. At some point in the process of interaction, I sometimes receive error code 5 when I use WSAGetLastError(); (I only call this function when a socket error occurs) I tried looking up the error number, but MSDN says all errors have values > 10000. Can anyone tell me what this error means? If any code is required, just let me know. Thanks in advance! [Edited by - Subotron on June 19, 2006 4:23:46 AM]
DanielKO
DanielKO
Error codes below 10000 are standard Win32 error codes; check your winerror.h header, number 5 is ERROR_ACCESS_DENIED.
Subotron
Subotron
ah like that... I thought all errors through WSAGetSelectError() were Winsock errors. Well thanks a lot!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.