Browse CVS Repository
Diff of /xoonips/AL/session.h
Parent Directory
| Revision Log
| Revision Graph
| Patch
| 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 |
* |
* |
| 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 |
| 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 |
|
|
|