Browse CVS Repository
Diff of /xoonips/AL/session.cc
Parent Directory
| Revision Log
| Revision Graph
| Patch
| 4 |
* |
* |
| 5 |
* $Revision$ |
* $Revision$ |
| 6 |
* $Log$ |
* $Log$ |
| 7 |
|
* Revision 1.2 2004/11/25 09:00:24 youi |
| 8 |
|
* get系関数にconst修飾. |
| 9 |
|
* |
| 10 |
* Revision 1.1 2004/11/24 06:54:04 youi |
* Revision 1.1 2004/11/24 06:54:04 youi |
| 11 |
* initial version |
* initial version |
| 12 |
* |
* |
| 34 |
|
|
| 35 |
session::~session(){} |
session::~session(){} |
| 36 |
|
|
| 37 |
unsigned long session::getSessionID(){ return sessionID; } |
unsigned long session::getSessionID() const { return sessionID; } |
| 38 |
unsigned long session::getRemoteHost(){ return remoteHost; } |
unsigned long session::getRemoteHost() const { return remoteHost; } |
| 39 |
time_t session::getDate(){ return date; } |
time_t session::getDate() const { return date; } |
| 40 |
|
|
| 41 |
void session::setRemoteHost( unsigned long remoteHost ) |
void session::setRemoteHost( unsigned long remoteHost ) |
| 42 |
{ |
{ |
| 54 |
srand( time( NULL ) ); |
srand( time( NULL ) ); |
| 55 |
sessionID = remoteHost ^ date ^ rand( ); |
sessionID = remoteHost ^ date ^ rand( ); |
| 56 |
} |
} |
| 57 |
|
|
| 58 |
|
void session::setSessionID( sessionid_t id ) |
| 59 |
|
{ |
| 60 |
|
this -> sessionID = id; |
| 61 |
|
} |
| 62 |
|
|
|
|
Legend:
| Removed from v.1.1 |
|
| changed lines |
| |
Added in v.1.2 |
|
|
|