How to stop SendBuffer in the middle ?

Aug 10, 2013 at 8:24 PM
i am using SendBuffer to play capture and if i want to stop the transmit in the middle i try PacketCommunicator.Break() and i can see with Wireshark that it still continue to send packets.
I also try PacketCommunicator.Dispose() and in this case i only get an crash.
Coordinator
Aug 16, 2013 at 8:48 AM
Edited Aug 16, 2013 at 8:49 AM
Hi psptst1,

I think you should probably use SendPacket().
SendBuffer() should be treated as an atomic operation for sending a bunch of packets more efficiently.
I suggest you use SendPacket() and also use SendBuffer when you see an actual need to do that.

Boaz.
Aug 16, 2013 at 11:26 AM
I an using Sendpacket().
the problem with send packet is that in captures with high speed the SendPacket takes long time compare to SendBuffer in case i want my application not respected the timestamp
Coordinator
Aug 16, 2013 at 5:27 PM
Well, I guess you have to do some tradeoff to decide what is the size of the atomic operation of sending you want.
SendPacket() means that this size is 1 and with the SendBuffer you can decide how many packets to put in there to decide on that size.
Does this make sense?