/**
  * Called when a keep-alive message has been sent. This happens about every 2 minutes if there has
  * not been any other messages sent to avoid the connection to be closed by the remote peer
  */
 protected void fireKeepAliveSent() {
   for (OutgoingListener listener : getOutgoingListeners()) {
     listener.keepAliveSent();
   }
 }
 /**
  * Called when the connection to the peer has been closed. Advertise the DownloadTask that there
  * is no more connection to the remote peer.
  */
 protected void fireConnectionClosed() {
   for (OutgoingListener listener : getOutgoingListeners()) {
     listener.connectionClosed();
   }
 }