Changeset 4608 for trunk/libtransmission/peer-io.c
- Timestamp:
- Jan 11, 2008, 2:09:20 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/peer-io.c
r4600 r4608 59 59 struct bufferevent * bufev; 60 60 uint8_t peerId[20]; 61 time_t timeCreated; 61 62 62 63 tr_extensions extensions; … … 147 148 c->isIncoming = isIncoming ? 1 : 0; 148 149 c->timeout = IO_TIMEOUT_SECS; 150 c->timeCreated = time( NULL ); 149 151 c->bufev = bufferevent_new( c->socket, 150 152 canReadWrapper, … … 583 585 tr_free( tmp ); 584 586 } 587 588 int 589 tr_peerGetAge( const tr_peerIo * io ) 590 { 591 return time( NULL ) - io->timeCreated; 592 }
Note: See TracChangeset
for help on using the changeset viewer.