CGI Utils Library 2.1.0 C/C++ script

SPONSORED LINKS

    Specification

  • Version: 2.1.0
  • File size: 0 KB
  • File name: cgi_utils-2.1.0.tar.gz
  • Last update:
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • Language: C/C++
  • Price:GPL
  • Company: Alexander I. Olefirenko (View more)

CGI Utils Library 2.1.0 script description:




Publisher review:
CGI Utils Library is just a simple class CGI wrapping the CGI protocol. CGI Utils library consists of two packages: cgi and template.CGI package is just a simple class CGI wrapping the CGI protocol.Template provides a simple way to work with templates.

Sessions are hashes of strings. Sessions stored in shared memory with default key ftok("/tmp/session",57) By default maximum number of sessions is set to 512 and maximum session size is set to 2048 bytes.

Sessions stored as hash each session identified by SID - session id that can be obtained by getUniqueId(). This functions returns a pointer to buffer containing sid(8-byte length string of letters and numbers).

It uses static internal buffer so do not use use it in multy-threaded environment.Class Session is used to operate with sessions . You can get existed session by calling getSession(const char *sid,Session &s) ,also you can add new or update existed session with addSession(const char *sid,Session &s) call.

Sessions are expire. At the time cleanup strategy do not guarantee what session wil be removed after expire period.Cleaning up called only when maximum number of sessions acchieved.

Sessions have next methods : string &get(key) and set(key,val) also time_t getTouched() method provided .

It returns last time the session was touched . Also method provided that could be usefull: destroy() destroy sessions.It will actually be destroyed when all processes detaches from sessions.

getInfo(int &nsessions,int &seed,vector &sids,vector &data,vector touched); Now special actions should be taken to create sessions hash.But you need to call destroy() explicitly to destroy sessions hash.
CGI Utils Library 2.1.0 is a C/C++ script for Test and Measurement scripts design by Alexander I. Olefirenko. It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.

Operating system:
Windows / Linux / Mac OS / BSD / Solaris

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5