Browse CVS Repository
Annotation of /xoonips/AL/session.h
Parent Directory
| Revision Log
| Revision Graph
Revision 1.3 -
( hide annotations)
( download)
( as text)
Thu Nov 25 09:00:41 2004 UTC
(19 years, 4 months ago)
by youi
Branch: MAIN
Changes since 1.2: +10 -6 lines
File MIME type: text/x-chdr
get系関数にconst修飾.
sessionid_tをtypedefした.
| 1 |
youi |
1.1 |
/* |
| 2 |
|
|
* |
| 3 |
|
|
* ?祉???激?с?括??????????鴻???荐? |
| 4 |
|
|
* |
| 5 |
youi |
1.3 |
* $Revision: 1.2 $ |
| 6 |
youi |
1.2 |
* $Log: session.h,v $ |
| 7 |
youi |
1.3 |
* Revision 1.2 2004/11/25 04:12:03 youi |
| 8 |
|
|
* typedef??菴遵??. |
| 9 |
|
|
* |
| 10 |
youi |
1.2 |
* Revision 1.1 2004/11/24 06:53:07 youi |
| 11 |
|
|
* initial version |
| 12 |
|
|
* |
| 13 |
youi |
1.1 |
* |
| 14 |
|
|
*/ |
| 15 |
|
|
|
| 16 |
|
|
#if !defined( SESSION_H ) |
| 17 |
|
|
#define SESSION_H |
| 18 |
|
|
|
| 19 |
|
|
#include <time.h> |
| 20 |
|
|
|
| 21 |
youi |
1.3 |
typedef unsigned long sessionid_t; |
| 22 |
youi |
1.1 |
class session{ |
| 23 |
|
|
private: |
| 24 |
|
|
unsigned long sessionID; //?祉???激?с??D |
| 25 |
|
|
unsigned long remoteHost; //???≪?若?????鴻????P |
| 26 |
|
|
time_t date; //?祉???激?с?割????ユ?? |
| 27 |
|
|
|
| 28 |
|
|
void sessionid( unsigned long remoteHost, time_t date ); |
| 29 |
|
|
public: |
| 30 |
|
|
session(); |
| 31 |
|
|
session( unsigned long remoteHost, time_t date ); |
| 32 |
|
|
~session(); |
| 33 |
youi |
1.3 |
|
| 34 |
|
|
sessionid_t getSessionID() const; |
| 35 |
|
|
unsigned long getRemoteHost() const; |
| 36 |
|
|
time_t getDate() const; |
| 37 |
youi |
1.1 |
|
| 38 |
|
|
void setRemoteHost( unsigned long remoteHost ); |
| 39 |
|
|
void setDate( time_t date ); |
| 40 |
youi |
1.3 |
void setSessionID( sessionid_t ); |
| 41 |
youi |
1.1 |
}; |
| 42 |
|
|
|
| 43 |
youi |
1.2 |
typedef session session_t; |
| 44 |
youi |
1.1 |
#endif |
|