This project is read-only.

How to stop SendBuffer in the middle ?

Aug 10, 2013 at 9: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.
Aug 16, 2013 at 9:48 AM
Edited Aug 16, 2013 at 9: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.

Aug 16, 2013 at 12:26 PM
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
Aug 16, 2013 at 6: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?