-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New feature: send/recv message implementation added to network stack #15040
Conversation
@mat-kalinowski, thank you for your changes. |
If you rebase to the latest master, license check should stop failing with python error. Also review styling check - code needs fixing. |
I have added some changes to solve the bugs present in the unit tests:
|
This patch contains improvements mentioned in the unresolved PR comments: - function names were changed from socket_sendmsg/socket_recvmsg to socket_sendto_control/socket_recvfrom_control. - default implementation of this functions was provided in the NetworkStack class. - MsgHeaderIterator accesses elements on the aligned addresses.
ad047e3
to
ec3f437
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding the test and applying the change requested in the previous PR. I left comments for few improvements that should be made to that PR.
Doxygen documentation for MsgHeaderIterator was added. Type used for alignment of the nsapi_msghdr_t struct was changed.
Minor errors in the documentation were fixed. These caused failure of the doxygen checks in the PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As this is a feature pull request, should there be referenced docs update?
connectivity/netsocket/tests/UNITTESTS/netsocket/NetworkStack/test_MsgHeaderIterator.cpp
Outdated
Show resolved
Hide resolved
nsapi_size_or_error_t TCPSocket::sendto_control(const SocketAddress &address, const void *data, nsapi_size_t size, | ||
nsapi_msghdr_t *control, nsapi_size_t control_size) | ||
{ | ||
// FIXME: Implement |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you rather create an tracking issue for this and remove the comment (reference the issue in the commit message, it can be easily found then)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, new issue - #15057
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue number should be added in the amended commit message when merging this PR into master
@0xc0170 Yes a doc update is required, I'm doing it. |
Pull request has been modified.
CI started |
Jenkins CI Test : ❌ FAILEDBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
The build errors are related, please review the logs |
Macro MBED_ALIGN expands in C to _Alignas which can't be used in the type declaration. This patch moves it to the first type definition which makes this code compile properly in CPP and C.
Pull request has been modified.
Done, It should work fine now |
CI started |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 2 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Summary of changes
This PR is continuation of another stale PR: #14847. I am opening this one, as I didn't have access to push to the fork created by other developer.
I have added few changes related to unresolved comments:
.
Impact of changes
Migration actions required
Documentation
Stale PR with this feature:
#14847
Pull request type
Test results
Reviewers
@pan-