Skip to content

Commit

Permalink
Added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
diversario committed Aug 16, 2013
1 parent 56f1510 commit c22516d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/Eventcast.js
Expand Up @@ -257,6 +257,14 @@ Eventcast.prototype._dispatchMessage = function _dispatchMessage(event) {
}



/**
* Request retransmission of selected packets.
*
* @param {String} seqId Sequence ID
* @param {Array} seqs IDs of packets need to be retransmitted.
* @private
*/
Eventcast.prototype._requestRetransmission = function _requestRetransmission(seqId, seqs) {
var host = this.messageBuffer.getSenderMeta(seqId).host
, port = this.messageBuffer.getSenderMeta(seqId).port
Expand Down Expand Up @@ -285,6 +293,12 @@ Eventcast.prototype._requestRetransmission = function _requestRetransmission(seq
}


/**
* Process retransmission request.
*
* @param {Object} req Object containing `seqId` and an array of missed `seq`s.
* @private
*/
Eventcast.prototype._retransmit = function _retransmit(req) {
var self = this
, messages = this.messageBuffer.getOutgoingPackets(req.seqId, req.missedSeq)
Expand Down

0 comments on commit c22516d

Please sign in to comment.