Develop and Download Open Source Software

Browse CVS Repository

Diff of /xoonips/AL/session.h

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

revision 1.2 by youi, Thu Nov 25 04:12:03 2004 UTC revision 1.3 by youi, Thu Nov 25 09:00:41 2004 UTC
# Line 4  Line 4 
4   *   *
5   * $Revision$   * $Revision$
6   * $Log$   * $Log$
7     * Revision 1.3  2004/11/25 09:00:41  youi
8     * get系関数にconst修飾.
9     * sessionid_tをtypedefした.
10     *
11   * Revision 1.2  2004/11/25 04:12:03  youi   * Revision 1.2  2004/11/25 04:12:03  youi
12   * typedefを追加.   * typedefを追加.
13   *   *
# Line 18  Line 22 
22    
23  #include <time.h>  #include <time.h>
24    
25    typedef unsigned long sessionid_t;
26  class session{  class session{
27  private:  private:
28      unsigned long sessionID;    //セッションID      unsigned long sessionID;    //セッションID
# Line 29  public: Line 34  public:
34      session();      session();
35      session( unsigned long remoteHost, time_t date );      session( unsigned long remoteHost, time_t date );
36      ~session();      ~session();
37        
38      unsigned long getSessionID();      sessionid_t getSessionID() const;
39      unsigned long getRemoteHost();      unsigned long getRemoteHost() const;
40      time_t getDate();      time_t getDate() const;
41    
42      void setRemoteHost( unsigned long remoteHost );      void setRemoteHost( unsigned long remoteHost );
43      void setDate( time_t date );      void setDate( time_t date );
44        void setSessionID( sessionid_t );
45  };  };
46    
47  typedef session session_t;  typedef session session_t;
48  #endif  #endif
   

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