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 SquidConnect (1)

Sunday
Feb192012

SquidConnect

  • Generates a SQUID connection.
  • Must be called before any other SQUID functions.

Prototype

int SquidConnect(char* sServer);

  • Parameters
sServerEndpoint address of a SQUID server that has been started
  • Return Values
>0Operation successful, SQUID connection pointer
<=0Error occurred

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");
SquidDisconnect(iSquid);