Develop and Download Open Source Software

Browse CVS Repository

Contents of /xoonips/AL/session.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.5 - (show annotations) (download) (as text)
Tue Nov 30 05:46:32 2004 UTC (19 years, 4 months ago) by aga
Branch: MAIN
Changes since 1.4: +8 -12 lines
File MIME type: text/x-c++src
・sessionからremoteHostを削除.

1 /*
2 *
3 * ?祉???激?с?括??????????鴻???臂?/span>
4 *
5 * $Revision: 1.4 $
6 * $Log: session.cc,v $
7 * Revision 1.4 2004/11/27 02:24:45 aga
8 * ??essionid????????????????????篆??.
9 *
10 * Revision 1.3 2004/11/26 06:24:53 aga
11 * ??ession???<?潟????serid_t??菴遵??.
12 *
13 * Revision 1.2 2004/11/25 09:00:24 youi
14 * get膤脂?∽?違??onst篆??.
15 *
16 * Revision 1.1 2004/11/24 06:54:04 youi
17 * initial version
18 *
19 *
20 */
21
22 #include <stdlib.h>
23
24 #include "session.h"
25
26 session::session()
27 {
28 sessionID = 0;
29 date = 0;
30 userID = 0;
31 }
32
33 session::session( time_t date )
34 {
35 this -> date = date;
36
37 sessionid( date );
38 }
39
40 session::~session(){}
41
42 unsigned long session::getSessionID() const { return sessionID; }
43 time_t session::getDate() const { return date; }
44 userid_t session::getUserID() const { return userID; }
45
46 void session::setDate( time_t date )
47 {
48 this -> date = date;
49 }
50
51 void session::sessionid( time_t date )
52 {
53 srand( time( NULL ) );
54 sessionID = date ^ rand( );
55 }
56
57 void session::setSessionID( sessionid_t id )
58 {
59 this -> sessionID = id;
60 }
61
62 void session::setUserID( userid_t uid )
63 {
64 this -> userID = uid;
65 }
66

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26