Develop and Download Open Source Software

Browse CVS Repository

Diff of /xoonips/AL/session.cc

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

revision 1.2 by youi, Thu Nov 25 09:00:24 2004 UTC revision 1.3 by aga, Fri Nov 26 06:24:53 2004 UTC
# Line 4  Line 4 
4   *   *
5   * $Revision$   * $Revision$
6   * $Log$   * $Log$
7     * Revision 1.3  2004/11/26 06:24:53  aga
8     * ・sessionのメンバにuserid_tを追加.
9     *
10   * Revision 1.2  2004/11/25 09:00:24  youi   * Revision 1.2  2004/11/25 09:00:24  youi
11   * get系関数にconst修飾.   * get系関数にconst修飾.
12   *   *
# Line 22  session::session() Line 25  session::session()
25      sessionID = 0;      sessionID = 0;
26      remoteHost = 0;      remoteHost = 0;
27      date = 0;      date = 0;
28        userID = 0;
29  }  }
30    
31  session::session( unsigned long remoteHost, time_t date )  session::session( unsigned long remoteHost, time_t date )
# Line 37  session::~session(){} Line 41  session::~session(){}
41  unsigned long session::getSessionID() const { return sessionID; }  unsigned long session::getSessionID() const { return sessionID; }
42  unsigned long session::getRemoteHost() const { return remoteHost; }  unsigned long session::getRemoteHost() const { return remoteHost; }
43  time_t session::getDate() const { return date; }  time_t session::getDate() const { return date; }
44    userid_t session::getUserID() const { return userID; }
45    
46  void session::setRemoteHost( unsigned long remoteHost )  void session::setRemoteHost( unsigned long remoteHost )
47  {  {
# Line 60  void session::setSessionID( sessionid_t Line 65  void session::setSessionID( sessionid_t
65      this -> sessionID = id;      this -> sessionID = id;
66  }  }
67    
68    void session::setUserID( userid_t uid )
69    {
70        this -> userID = uid;
71    }
72    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

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