-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples: cellular: modem_shell: connect UDP sockets
This commit updates the sample to also connect UDP sockets. UDP sockets are connectionless, however the modem library supports invoking `connect` on a UDP socket to set its peer address. This simplifies the use of send which will internally use the peer address. This also fixes a problem when setting `RAI_NO_DATA` on a UDP socket, since `RAI_NO_DATA` requires the socket to be connected. Signed-off-by: Mirko Covizzi <[email protected]>
- Loading branch information
1 parent
baba310
commit b417d0e
Showing
2 changed files
with
11 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters