1 /* 2 httperf -- a tool for measuring web server performance 3 Copyright 2000-2007 Hewlett-Packard Company 4 5 This file is part of httperf, a web server performance measurment 6 tool. 7 8 This program is free software; you can redistribute it and/or 9 modify it under the terms of the GNU General Public License as 10 published by the Free Software Foundation; either version 2 of the 11 License, or (at your option) any later version. 12 13 In addition, as a special exception, the copyright holders give 14 permission to link the code of this work with the OpenSSL project's 15 "OpenSSL" library (or with modified versions of it that use the same 16 license as the "OpenSSL" library), and distribute linked combinations 17 including the two. You must obey the GNU General Public License in 18 all respects for all of the code used other than "OpenSSL". If you 19 modify this file, you may extend this exception to your version of the 20 file, but you are not obligated to do so. If you do not wish to do 21 so, delete this exception statement from your version. 22 23 This program is distributed in the hope that it will be useful, 24 but WITHOUT ANY WARRANTY; without even the implied warranty of 25 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 26 General Public License for more details. test()27 28 You should have received a copy of the GNU General Public License 29 along with this program; if not, write to the Free Software 30 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 31 02110-1301, USA 32 */ 33 34 #ifndef session_h 35 #define session_h 36 37 #include <sess.h> 38 39 extern void session_init (void); /* initialize session module */ 40 41 /* Maximum number of calls that can be queued on a session. */ 42 extern size_t session_max_qlen (Sess *sess); 43 44 /* Current number of calls that are queued on the session. */ 45 extern size_t session_current_qlen (Sess *sess); 46 47 /* Issue call CALL on session SESS. Returns negative number in case 48 of failure. */ 49 extern int session_issue_call (Sess *sess, Call *call); 50 51 /* Given a connection object, find the session object that the 52 connection belongs to. */ 53 extern Sess *session_get_sess_from_conn (Conn *conn); 54 55 /* Given a call object, find the session object that the call 56 belongs to. */ 57 extern Sess *session_get_sess_from_call (Call *call); 58 59 #endif /* session_h */ 60