public void sentPacketBySUT(DatagramPacket packet){
  InetAddress addr=packet.getAddress();
  int port=packet.getPort();
  EndPointInfo info=new EndPointInfo(addr.getHostAddress(),port,ConnectionType.UDP);
  remoteContactedPorts.add(info);
synchronized (sentUdpPackets) {
    AtomicInteger counter=sentUdpPackets.get(info);
    if (counter == null) {
      counter=new AtomicInteger(0);
      sentUdpPackets.put(info,counter);
    }
    counter.incrementAndGet();
  }
}

public void sentPacketBySUT ( DatagramPacket packet ) { InetAddress addr = packet . getAddress ( ) ; int port = packet . getPort ( ) ; EndPointInfo info = new EndPointInfo ( addr . getHostAddress ( ) , port , ConnectionType . UDP ) ; remoteContactedPorts . add ( info ) ; synchronized ( sentUdpPackets ) { AtomicInteger counter = sentUdpPackets . get ( info ) ; if ( counter == null ) { counter = new AtomicInteger ( 0 ) ; sentUdpPackets . put ( info , counter ) ; } counter . incrementAndGet ( ) ; } }
represent the fact that a udp was sent to a remote host
