netmaster19 / libxbee

Automatically exported from code.google.com/p/libxbee
0 stars 0 forks source link

packet 'flush' #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
If packets are being recieved, but the user doesn't want them memory usage 
will go up.

Make a 'flush' function to remove all packets from the queue. (could be 
dangerous... needs to be thought about)

Original issue reported on code.google.com by g@attie.co.uk on 29 Oct 2009 at 11:16

GoogleCodeExporter commented 8 years ago
Rather than provide a potentially dangerous flush function, libxbee now 
discards 
packets that are destined to a non-existent connection.
Packets that remain for a connection are discarded when the connection is ended 
with 
xbee_endcon()

Original comment by g@attie.co.uk on 3 Dec 2009 at 12:09