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.1 by youi, Wed Nov 24 06:54:04 2004 UTC revision 1.2 by youi, Thu Nov 25 09:00:24 2004 UTC
# Line 4  Line 4 
4   *   *
5   * $Revision$   * $Revision$
6   * $Log$   * $Log$
7     * Revision 1.2  2004/11/25 09:00:24  youi
8     * get系関数にconst修飾.
9     *
10   * Revision 1.1  2004/11/24 06:54:04  youi   * Revision 1.1  2004/11/24 06:54:04  youi
11   * initial version   * initial version
12   *   *
# Line 31  session::session( unsigned long remoteHo Line 34  session::session( unsigned long remoteHo
34    
35  session::~session(){}  session::~session(){}
36    
37  unsigned long session::getSessionID(){ return sessionID; }  unsigned long session::getSessionID() const { return sessionID; }
38  unsigned long session::getRemoteHost(){ return remoteHost; }  unsigned long session::getRemoteHost() const { return remoteHost; }
39  time_t session::getDate(){ return date; }  time_t session::getDate() const { return date; }
40    
41  void session::setRemoteHost( unsigned long remoteHost )  void session::setRemoteHost( unsigned long remoteHost )
42  {  {
# Line 51  void session::sessionid( unsigned long r Line 54  void session::sessionid( unsigned long r
54      srand( time( NULL ) );      srand( time( NULL ) );
55      sessionID = remoteHost ^ date ^ rand( );      sessionID = remoteHost ^ date ^ rand( );
56  }  }
57    
58    void session::setSessionID( sessionid_t id )
59    {
60        this -> sessionID = id;
61    }
62    

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

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