Internet Direct (Indy)
Home
PreviousUpNext
TIdStackBSDBase.WSTranslateSocketErrorMsg Method

Builds an exception message using the specified socket error number.

Pascal
function WSTranslateSocketErrorMsg(
    const AErr: integer
): string; virtual;
Parameters 
Description 
AErr 
Error number to socket error. 

string - Exception message text built using the error number and the exception message text.

WSTranslateSocketErrorMsg is a string function used to build an exception message using the specified socket error number. 

WSTranslateSocketErrorMsg merges the value in AErr and the resource string for the error message into the the format specifed in RSStackError using the following numbers and values: 

 

 

When AErr contains a value other those specified above, the exception text will be blank. 

WSTranslateSocketErrorMsg is used in RaiseSocketError to perpare the exception message for the socket error.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.