mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +01:00
change ivar name
This commit is contained in:
parent
61992943dd
commit
792a51a404
2 changed files with 5 additions and 5 deletions
|
@ -37,9 +37,9 @@ AddrInfo::construct( int socket, const AddrUnion* saddr, bool isTCP )
|
||||||
struct timespec tp;
|
struct timespec tp;
|
||||||
clock_gettime( CLOCK_MONOTONIC, &tp );
|
clock_gettime( CLOCK_MONOTONIC, &tp );
|
||||||
/* convert to milliseconds */
|
/* convert to milliseconds */
|
||||||
m_created = (tp.tv_sec * 1000) + (tp.tv_nsec / 1000000);
|
m_createdMillis = (tp.tv_sec * 1000) + (tp.tv_nsec / 1000000);
|
||||||
logf( XW_LOGINFO, "%s: m_created for socket %d: %lx",
|
logf( XW_LOGINFO, "%s: m_createdMillis for socket %d: %lx",
|
||||||
__func__, socket, m_created );
|
__func__, socket, m_createdMillis );
|
||||||
/* assert( m_created >= s_prevCreated ); */
|
/* assert( m_created >= s_prevCreated ); */
|
||||||
/* s_prevCreated = m_created; */
|
/* s_prevCreated = m_created; */
|
||||||
|
|
||||||
|
|
|
@ -74,7 +74,7 @@ class AddrInfo {
|
||||||
const struct sockaddr* sockaddr() const { assert(m_isValid);
|
const struct sockaddr* sockaddr() const { assert(m_isValid);
|
||||||
return &m_saddr.u.addr; }
|
return &m_saddr.u.addr; }
|
||||||
const AddrUnion* saddr() const { assert(m_isValid); return &m_saddr; }
|
const AddrUnion* saddr() const { assert(m_isValid); return &m_saddr; }
|
||||||
uint32_t created() const { return m_created; }
|
uint32_t created() const { return m_createdMillis; }
|
||||||
bool isCurrent() const;
|
bool isCurrent() const;
|
||||||
|
|
||||||
bool equals( const AddrInfo& other ) const;
|
bool equals( const AddrInfo& other ) const;
|
||||||
|
@ -92,7 +92,7 @@ class AddrInfo {
|
||||||
bool m_isValid;
|
bool m_isValid;
|
||||||
ClientToken m_clientToken; /* must be 32 bit */
|
ClientToken m_clientToken; /* must be 32 bit */
|
||||||
AddrUnion m_saddr;
|
AddrUnion m_saddr;
|
||||||
uint32_t m_created; /* microseconds since boot, from clock_gettime() */
|
uint32_t m_createdMillis; /* milliseconds since boot, from clock_gettime() */
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue