taskrambler  0.1.9
Web server and task management solution.
session_stop.c File Reference
#include <sys/types.h>
#include "class.h"
#include "session.h"
#include "application/application.h"
#include "utils/memory.h"
+ Include dependency graph for session_stop.c:

Go to the source code of this file.

Macros

#define _GNU_SOURCE
 

Functions

void applicationSessionStop (Application this, Session session)
 

Detailed Description

Author
Georg Hopp

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file session_stop.c.

Macro Definition Documentation

#define _GNU_SOURCE

Definition at line 23 of file session_stop.c.

Function Documentation

void applicationSessionStop ( Application  this,
Session  session 
)

Definition at line 35 of file session_stop.c.

References hashDeleteByVal(), and SESSION_LIVETIME.

36 {
37  int index = SESSION_LIVETIME -
38  (session->livetime - this->session_time_ofs);
39 
40  if (SESSION_LIVETIME > index) {
41  hashDeleteByVal((this->active_sessions)[index], session->hash);
42  }
43 }
void * hashDeleteByVal(Hash, unsigned long)
Definition: hash/delete.c:59
#define SESSION_LIVETIME
Definition: session.h:33

+ Here is the call graph for this function: