Hi,
Just noticed if i receive an exception in
MyClient.Connect()
int prints the WSAGetLastError number into the exception message. Calling WSAGetLastError inside the exceptionblock however returns 0. It seems that it has been overwritten within the Connect function.
i would prefer to use WSAGetLastError for receiving detailed info at runtime for my own exception handling.
Greetings
Memnarch
TScSSHClient.Connect WSAGetLastError overwritten to 0
Shure, i can read about it in the MSDN but i cannot react to it at runtime easily. If its overriden by the close socket function, maybe extending the exception with an error code?
Because based on the errorcode i want to log some things and/or give feedback to the user, which isnt possible at this time(parsing the exception message does not seem to be a good idea)
Greets
Memnarch
Because based on the errorcode i want to log some things and/or give feedback to the user, which isnt possible at this time(parsing the exception message does not seem to be a good idea)
Greets
Memnarch