public void send(InetAddress adr,int port) throws IOException {
  int maxseq=getNumPackets();
  DatagramSocket s=new DatagramSocket();
  for (int seq=1; seq <= maxseq; seq++) {
    byte[] pack=getUDPMessage(seq);
    DatagramPacket p=new DatagramPacket(pack,pack.length);
    p.setAddress(adr);
    p.setPort(port);
    s.send(p);
  }
}

public void send ( InetAddress adr , int port ) throws IOException { int maxseq = getNumPackets ( ) ; DatagramSocket s = new DatagramSocket ( ) ; for ( int seq = 1 ; seq <= maxseq ; seq ++ ) { byte [ ] pack = getUDPMessage ( seq ) ; DatagramPacket p = new DatagramPacket ( pack , pack . length ) ; p . setAddress ( adr ) ; p . setPort ( port ) ; s . send ( p ) ; } }
sends this packet to the eventserver
