[PATCH v2 openobex 3/3] Modify code to read entire packet when fd transport format is SEQPACKET.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 lib/fdobex.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/lib/fdobex.c b/lib/fdobex.c index 7fa4a21..46a0796 100644
--- a/lib/fdobex.c
+++ b/lib/fdobex.c
@@ -79,6 +79,9 @@ static int fdobex_read(obex_t *self, void *buf, int buflen)  {
 	struct obex_transport *trans = &self->trans;

+	if(trans->data.fd.fmt == FDOBEX_MT_SEQPACKET)
+		buflen = self->mtu_rx;
+
 #ifdef _WIN32
 	return  _read(trans->fd, buf, buflen);  #else
--
1.7.1
��.n��������+%������w��{.n�����{����^n�r������&��z�ޗ�zf���h���~����������_��+v���)ߣ�

[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux