Browse CVS Repository
Contents of /xoonips/AL/session.h
Parent Directory
| Revision Log
| Revision Graph
Revision 1.3 -
( show 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 |
/* |
| 2 |
* |
| 3 |
* ?祉???激?с?括??????????鴻???荐? |
| 4 |
* |
| 5 |
* $Revision: 1.2 $ |
| 6 |
* $Log: session.h,v $ |
| 7 |
* Revision 1.2 2004/11/25 04:12:03 youi |
| 8 |
* typedef??菴遵??. |
| 9 |
* |
| 10 |
* Revision 1.1 2004/11/24 06:53:07 youi |
| 11 |
* initial version |
| 12 |
* |
| 13 |
* |
| 14 |
*/ |
| 15 |
|
| 16 |
#if !defined( SESSION_H ) |
| 17 |
#define SESSION_H |
| 18 |
|
| 19 |
#include <time.h> |
| 20 |
|
| 21 |
typedef unsigned long sessionid_t; |
| 22 |
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 |
|
| 34 |
sessionid_t getSessionID() const; |
| 35 |
unsigned long getRemoteHost() const; |
| 36 |
time_t getDate() const; |
| 37 |
|
| 38 |
void setRemoteHost( unsigned long remoteHost ); |
| 39 |
void setDate( time_t date ); |
| 40 |
void setSessionID( sessionid_t ); |
| 41 |
}; |
| 42 |
|
| 43 |
typedef session session_t; |
| 44 |
#endif |
|