SQUID Functions

 

  • The SQUID functions, and their examples, assume that the SQUID server has been started with an address of http://localhost:8000.
  • Validation of the function calls can be handled by checking the return value and calling SquidGetLastError().

 

Entries in SquidDisconnect (1)

Sunday
Feb192012

SquidDisconnect

  • Disconnects from SQUID.
  • Before using SQUID again, SquidConnect must be called.

Prototype

int SquidDisconnect(int iSquid);

  • Parameters
iSquidSquid Connection Handle
  • Return Values
0Operation successful
<0Error occurred

Example

int iSquid;
lr_load_dll("SQUID-REST.dll");
iSquid = SquidConnect("http://localhost:8000");
SquidCreateColumn(iSquid, "NewColumn");
SquidSendData(iSquid, "NewColumn", "20");
SquidDisconnect(iSquid);