Java and UDP packets

goli29

New member
Java and UDP packets

Hi all, I have a question in Java and UDP. I am trying to send many UDP packets in a very high send rate (a 'for' loop) using DatagramSocket. If the arp table is empty, I can see in the sniffer that only one packet was sent. I tried to increase the buffer using 'setSendBufferSize' method, but it didn't help. I also tried to increase the receiving buffer size. What I always got is: If the arp table had the entry for the device (or for the default GW to that device), I saw in the sniffer all the packets that I expected. If it didn't have that entry, only one packet was sent. Does anyone know the reason for only one packet sent when the arp table is empty ? How can I fix the problem, and send all UDP packets with no discarding ? Thanks very much, Eyal
 
למעלה