Skip to content

Commit c716cfd

Browse files
nrf-squash! [nrf noup] include: net: add SO_SENDCB to NCS extensions
The SO_SENDCB socket option allows to set a callback to be called when a send operation is completed by lower layers. Signed-off-by: Kacper Radoszewski <[email protected]>
1 parent 3c0e35c commit c716cfd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/zephyr/net/socket_ncs.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ extern "C" {
8585
*/
8686
#define SO_RAI (NET_SOCKET_NCS_BASE + 61)
8787

88+
/** sockopt: set a callback to be called when a send operation is completed by lower layers,
89+
* or until the timeout, given by the SO_SNDTIMEO socket option, is reached.
90+
*/
91+
#define SO_SENDCB (NET_SOCKET_NCS_BASE + 63)
92+
8893
/** Release assistance indication (RAI).
8994
* Indicate that the application does not intend to send more data.
9095
* This applies immediately and lets the modem exit connected mode more

0 commit comments

Comments
 (0)