Changeset 2995
- Timestamp:
- Sep 9, 2007, 1:52:14 AM (15 years ago)
- Location:
- branches/encryption/libtransmission
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/encryption/libtransmission/peer-io.c
r2988 r2995 374 374 } 375 375 376 int 377 tr_peerIoIsEncrypted( const tr_peerIo * io ) 378 { 379 return io!=NULL && io->encryptionMode==PEER_ENCRYPTION_RC4; 380 } 381 376 382 void 377 383 tr_peerIoWriteBytes( tr_peerIo * io, -
branches/encryption/libtransmission/peer-io.h
r2985 r2995 138 138 int encryptionMode ); 139 139 140 int tr_peerIoIsEncrypted( const tr_peerIo * io ); 141 140 142 void tr_peerIoWriteBytes ( tr_peerIo * io, 141 143 struct evbuffer * outbuf, -
branches/encryption/libtransmission/peer-mgr.c
r2989 r2995 776 776 stat->client = peer->client; 777 777 stat->progress = peer->progress; 778 stat->isConnected = live; 778 stat->isConnected = live ? 1 : 0; 779 stat->isEncrypted = tr_peerIoIsEncrypted( peer->io ) ? 1 : 0; 779 780 stat->uploadToRate = tr_peerIoGetRateToPeer( peer->io ); 780 781 stat->downloadFromRate = tr_peerIoGetRateToClient( peer->io ); -
branches/encryption/libtransmission/transmission.h
r2954 r2995 659 659 const char * client; 660 660 661 int isConnected; 662 int from; 663 float progress; 664 int port; 661 unsigned int isConnected : 1; 662 unsigned int isEncrypted : 1; 663 unsigned int isDownloading : 1; 664 unsigned int isUploading : 1; 665 666 uint8_t from; 667 uint16_t port; 665 668 666 int isDownloading; 667 int isUploading; 668 float downloadFromRate; 669 float uploadToRate; 669 float progress; 670 float downloadFromRate; 671 float uploadToRate; 670 672 }; 671 673
Note: See TracChangeset
for help on using the changeset viewer.