Sunday
Feb192012
SquidGetLastError
- Returns the last error on the connection handle (SQUID pointer).
- SQUID function return values should also be checked.
Prototype
char* SquidGetLastError(int iSquid);
- Parameters
iSquid Squid Connection Handle
- Return Values
char* Last reported error "" The last operation was successful
Example
int iSquid;
lr_load_dll("SQUID-REST.dll");
iSquid = SquidConnect("http://localhost:8000");
SquidCreateColumn(iSquid, "NewColumn");
SquidSendData(iSquid, "NewColumn", "20");
SquidSendData(iSquid, "NewColumn", "100");
SquidSendData(iSquid, "NewColumn", "50");
SquidRetriveData(iSquid, "NewColumn");
lr_output_message("%s",SquidGetLastError(iSquid));
SquidRetriveData(iSquid, "NewColumnXXX");
lr_output_message("%s",SquidGetLastError(iSquid));
SquidDisconnect(iSquid);