Changeset 3092
- Timestamp:
- Sep 17, 2007, 12:18:23 AM (15 years ago)
- Location:
- branches/encryption/libtransmission
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/encryption/libtransmission/peer-mgr.c
r3089 r3092 488 488 case TR_PEERMSG_NEED_REQ: 489 489 if( t->refillTimer == NULL ) 490 t->refillTimer = tr_timerNew( t->manager->handle, refillPulse, t, REFILL_PERIOD_MSEC ); 490 t->refillTimer = tr_timerNew( t->manager->handle, 491 refillPulse, t, 492 REFILL_PERIOD_MSEC ); 491 493 break; 492 494 … … 497 499 case TR_PEERMSG_CLIENT_BLOCK: 498 500 broadcastGotBlock( t, e->pieceIndex, e->offset, e->length ); 499 break;500 501 case TR_PEERMSG_GOT_PEX:502 /* FIXME */503 501 break; 504 502 -
branches/encryption/libtransmission/peer-msgs.c
r3090 r3092 105 105 tr_timer * pexTimer; 106 106 107 struct peer_request blockToUs; /* the block currntly being sent to us */ 108 109 time_t gotKeepAliveTime; 110 time_t clientSentPexAt; 111 107 112 unsigned int notListening : 1; 108 113 unsigned int peerSupportsPex : 1; 109 110 struct peer_request blockToUs; /* the block currntly being sent to us */111 112 time_t gotKeepAliveTime;113 time_t clientSentPexAt;114 114 115 115 uint8_t state; … … 137 137 e.eventType = eventType; 138 138 tr_publisherPublish( peer->publisher, peer, &e ); 139 }140 141 static void142 fireGotPex( tr_peermsgs * peer )143 {144 publishEvent( peer, TR_PEERMSG_GOT_PEX );145 139 } 146 140 … … 458 452 (uint8_t*)sub->val.s.s, n ); 459 453 } 460 461 fireGotPex( msgs );462 454 463 455 tr_bencFree( &val ); -
branches/encryption/libtransmission/peer-msgs.h
r3089 r3092 59 59 TR_PEERMSG_CLIENT_HAVE, 60 60 TR_PEERMSG_CLIENT_BLOCK, 61 TR_PEERMSG_GOT_PEX,62 61 TR_PEERMSG_GOT_ERROR, 63 62 TR_PEERMSG_NEED_REQ
Note: See TracChangeset
for help on using the changeset viewer.