1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-28 10:38:45 +00:00
transmission/libtransmission/peer-mgr-private.h
Charles Kerr 56b0e5d1ac * remove some console messages.
* scrape sooner when peers are added.
* added stub code for the connection manager code
2007-09-22 00:22:10 +00:00

54 lines
1.3 KiB
C

/*
* This file Copyright (C) 2007 Charles Kerr <charles@rebelbase.com>
*
* This file is licensed by the GPL version 2. Works owned by the
* Transmission project are granted a special exemption to clause 2(b)
* so that the bulk of its code can remain under the MIT license.
* This exemption does not extend to derived works not owned by
* the Transmission project.
*
* $Id$
*/
#ifndef TR_PEER_MGR_PRIVATE_H
#define TR_PEER_MGR_PRIVATE_H
#include <inttypes.h> /* uint16_t */
#include <arpa/inet.h> /* struct in_addr */
#include "publish.h" /* tr_publisher_tag */
struct tr_bitfield;
struct tr_peerIo;
struct tr_peermsgs;
typedef struct tr_peer
{
unsigned int peerIsChoked : 1;
unsigned int peerIsInterested : 1;
unsigned int clientIsChoked : 1;
unsigned int clientIsInterested : 1;
unsigned int peerSupportsEncryption : 1;
unsigned int doDisconnect : 1;
struct in_addr in_addr;
uint16_t port;
struct tr_peerIo * io;
uint8_t from;
struct tr_bitfield * banned;
struct tr_bitfield * blame;
struct tr_bitfield * have;
float progress;
/* the client name from the `v' string in LTEP's handshake dictionary */
char * client;
time_t peerSentDataAt;
time_t chokeChangedAt;
struct tr_peermsgs * msgs;
tr_publisher_tag msgsTag;
}
tr_peer;
#endif