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);