TBlockSocket.LastError
TBlockSocket

property LastError: Integer;

Unit
blcksock

Description
Last WinSock operation error code. Error codes are described in Winsock documentation. By calling function GetErrorDesc(ErrorCode:integer):string you can get error code string description.