Packages that use Request
Package
Description
I2P version of the Snark BitTorrent client, enhanced for I2P: peers are I2P destinations, torrents can be served anonymously as hidden services, and metadata carries I2P-specific comment fields.
Uses of Request in org.klomp.snark
Fields in org.klomp.snark declared as RequestModifier and TypeFieldDescriptionprivate RequestPeerState.lastRequestThe tail (NOT the head) of the request queue.private RequestWebPeer.lastRequestThe request most recently sent.private RequestPeerState.pendingRequestFlag to back up from firstOutstandingRequest when calculating progress.Fields in org.klomp.snark with type parameters of type RequestModifier and TypeFieldDescriptionPeerState.outstandingRequestsPiece requests sent but not yet answered.WebPeer.outstandingRequestsThe requests from the coordinator awaiting their responses.Methods in org.klomp.snark that return RequestModifier and TypeMethodDescriptionprivate RequestPeerState.getLowestOutstandingRequest(int piece) Finds the outstanding request for the piece with the lowest offset.private RequestWebPeer.getLowestOutstandingRequest(int piece) Returns the request with the lowest offset for the given piece.(package private) RequestPeerState.getOutstandingRequest(int piece, int begin, int length) Called when a piece message is being processed by the incoming connection.PartialPiece.getRequest()Creates a Request object for the next missing chunk in this piece.PartialPiece.getRequest(int minOffset) Creates a Request object for the next missing chunk at or after the given offset.Methods in org.klomp.snark that return types with arguments of type RequestModifier and TypeMethodDescriptionPeerState.returnPartialPieces()Return partial pieces to the PeerCoordinator and clear the request queue.PeerState.returnPartialPieces(int piece) Return the partial piece for a piece to the PeerCoordinator.WebPeer.returnPartialPieces()Return partial pieces to the coordinator.Methods in org.klomp.snark with parameters of type RequestModifier and TypeMethodDescription(package private) voidPeerState.pieceMessage(Request req) Called when a full chunk (i.e.(package private) voidPeerConnectionOut.sendCancel(Request req) Send a cancel message and remove any matching request from the queue.(package private) voidPeerConnectionOut.sendRequest(Request req) Queue a request message, checking for duplicates.Method parameters in org.klomp.snark with type arguments of type RequestModifier and TypeMethodDescription(package private) voidPeerConnectionOut.retransmitRequests(List<Request> requests) Retransmit requests that haven't been received within REQ_TIMEOUT.voidPeerCoordinator.savePartialPieces(Peer peer, List<Request> partials) Save partial pieces on peer disconnection and hopefully restart it later.voidPeerListener.savePartialPieces(Peer peer, List<Request> pcs) Called when the peer has disconnected and the peer task may have a partially downloaded piece that the PeerCoordinator can save.(package private) voidPeerConnectionOut.sendRequests(List<Request> requests) Send all requests in the list.