@Override
	public void run() {
		while(sendCount > 0 && !Thread.interrupted()) {
			
			try {
				datagramService.sendDatagram(data);
				Thread.sleep(time);
			} catch (InterruptedException e) {
				break;
			} catch (IOException e) {
				System.out.println("sending Exception");
			}	
			
			sendCount--;
		}		
	}