public void sentData(){
  hasSentData=true;
  lastSendTime=System.currentTimeMillis();
}

public void sentData ( ) { hasSentData = true ; lastSendTime = System . currentTimeMillis ( ) ; }
method called when data is sent to this peer .
