Add function buf_empty() and use it to fix send bug
authorHendrik Sattler <post@hendrik-sattler.de>
Wed, 27 Jul 2011 16:53:33 +0000 (18:53 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Fri, 29 Jul 2011 07:51:19 +0000 (10:51 +0300)
commitc16b4e2b38304fd22a0155f279d1c1279cca265f
tree87642ec56efe7bc1ab54befeb9c3acfe60eb1cad
parent8e6e2285461db6d15c316e92fea829fabe4d2ef6
Add function buf_empty() and use it to fix send bug

If non-blocking file descriptors or sockets are used, it can happen that
incomplete message get sent.
lib/databuffer.c
lib/databuffer.h
lib/obex_main.c