Browse CVS Repository
Annotation of /xoonips/AL/session.h
Parent Directory
| Revision Log
| Revision Graph
Revision 1.1 -
( hide annotations)
( download)
( as text)
Wed Nov 24 06:53:07 2004 UTC
(19 years, 4 months ago)
by youi
Branch: MAIN
File MIME type: text/x-chdr
initial version
| 1 |
youi |
1.1 |
/* |
| 2 |
|
|
* |
| 3 |
|
|
* セッション管理用クラスの宣言 |
| 4 |
|
|
* |
| 5 |
|
|
* $Revision$ |
| 6 |
|
|
* $Log$ |
| 7 |
|
|
* |
| 8 |
|
|
*/ |
| 9 |
|
|
|
| 10 |
|
|
#if !defined( SESSION_H ) |
| 11 |
|
|
#define SESSION_H |
| 12 |
|
|
|
| 13 |
|
|
#include <time.h> |
| 14 |
|
|
|
| 15 |
|
|
class session{ |
| 16 |
|
|
private: |
| 17 |
|
|
unsigned long sessionID; //セッションID |
| 18 |
|
|
unsigned long remoteHost; //リモートホストのIP |
| 19 |
|
|
time_t date; //セッション作成日時 |
| 20 |
|
|
|
| 21 |
|
|
void sessionid( unsigned long remoteHost, time_t date ); |
| 22 |
|
|
public: |
| 23 |
|
|
session(); |
| 24 |
|
|
session( unsigned long remoteHost, time_t date ); |
| 25 |
|
|
~session(); |
| 26 |
|
|
|
| 27 |
|
|
unsigned long getSessionID(); |
| 28 |
|
|
unsigned long getRemoteHost(); |
| 29 |
|
|
time_t getDate(); |
| 30 |
|
|
|
| 31 |
|
|
void setRemoteHost( unsigned long remoteHost ); |
| 32 |
|
|
void setDate( time_t date ); |
| 33 |
|
|
}; |
| 34 |
|
|
|
| 35 |
|
|
#endif |
| 36 |
|
|
|
|