private HTTPAnnounceRequestMessage buildAnnounceRequest ( AnnounceRequestMessage . RequestEvent event , AnnounceableInformation torrentInfo , Peer peer ) throws IOException , MessageValidationException { // Build announce request message final long uploaded = torrentInfo . getUploaded ( ) ; final long downloaded = torrentInfo . getDownloaded ( ) ; final long left = torrentInfo . getLeft ( ) ; return HTTPAnnounceRequestMessage . craft ( torrentInfo . getInfoHash ( ) , peer . getPeerIdArray ( ) , peer . getPort ( ) , uploaded , downloaded , left , true , false , event , peer . getIp ( ) , AnnounceRequestMessage . DEFAULT_NUM_WANT ) ; }
Build the announce request tracker message .