summaryrefslogtreecommitdiffstats
path: root/src/phLibNfc.h
diff options
context:
space:
mode:
authorSunil Jogi <sunil.jogi@nxp.com>2012-01-30 10:47:37 -0800
committerMartijn Coenen <maco@google.com>2012-01-30 14:03:12 -0800
commit177497f518ad2bbb8fe6cab5cf55415244b86565 (patch)
tree0c8cee709244125a772ca1319d01089a8bd369f3 /src/phLibNfc.h
parent00485a32cdb11d9773d9800aa374f16560a9d41e (diff)
downloadexternal_libnfc-nxp-177497f518ad2bbb8fe6cab5cf55415244b86565.zip
external_libnfc-nxp-177497f518ad2bbb8fe6cab5cf55415244b86565.tar.gz
external_libnfc-nxp-177497f518ad2bbb8fe6cab5cf55415244b86565.tar.bz2
Handle inbound buffering in LLCP connectionless sockets
This enables the server to avoid losing packets, especially when receiving them in an aggregated packet. The size of the buffer is determined by the size of the working buffer provided by the application. Change-Id: Ia3c72e19fdb74e2a43390af5607c497c2275fe46
Diffstat (limited to 'src/phLibNfc.h')
-rw-r--r--src/phLibNfc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/phLibNfc.h b/src/phLibNfc.h
index 7a5c3f0..e4e41cf 100644
--- a/src/phLibNfc.h
+++ b/src/phLibNfc.h
@@ -2577,7 +2577,9 @@ extern NFCSTATUS phLibNfc_Llcp_GetRemoteInfo( phLibNfc_Handle
* must provide a working buffer to the socket in order to handle incoming data. This buffer
* must be large enough to fit the receive window (RW * MIU), the remaining space being
* used as a linear buffer to store incoming data as a stream. Data will be readable later
-* using the phLibNfc_Llcp_Recv function.
+* using the phLibNfc_Llcp_Recv function. If the socket is connectionless, the caller may
+* provide a working buffer to the socket in order to bufferize as many packets as the buffer
+* can contain (each packet needs MIU + 1 bytes).
* The options and working buffer are not required if the socket is used as a listening socket,
* since it cannot be directly used for communication.
*