Skip to content

Add UDP ECHOTEST with connect/send/recv calls #12013

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

Merged
merged 2 commits into from
Dec 10, 2019
Merged

Add UDP ECHOTEST with connect/send/recv calls #12013

merged 2 commits into from
Dec 10, 2019

Conversation

kivaisan
Copy link
Contributor

@kivaisan kivaisan commented Dec 3, 2019

Description

Summary of change

UDPSocket can be used also similar to TCPSocket using connect(), send() and recv() methods.

This commit adds UDP ECHOTESTs which uses these methods instead of sendto() and recvfrom().

Documentation


Pull request type

[X] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[] Feature update (New feature / Functionality change / New API)
[] Major update (Breaking change E.g. Return code change / API behaviour change)

Test results

[] No Tests required for this change (E.g docs only update)
[X] Covered by existing mbed-os tests (Greentea or Unittest)
[] Tests / results supplied as part of this PR

Reviewers


Release Notes

Summary of changes

Impact of changes

Migration actions required

UDPSocket can be used also similar to TCPSocket using connect(), send() and recv() methods.

This commit adds UDP ECHOTESTS which uses these methods instead of sendto() and recvfrom().
@ciarmcom ciarmcom requested review from a team December 3, 2019 14:00
@ciarmcom
Copy link
Member

ciarmcom commented Dec 3, 2019

@kivaisan, thank you for your changes.
@ARMmbed/mbed-os-test @ARMmbed/mbed-os-ipcore @ARMmbed/mbed-os-maintainers please review.

Copy link
Contributor

@SeppoTakalo SeppoTakalo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@0xc0170 0xc0170 added needs: CI release-version: 6.0.0-alpha-1 First pre-release version of 6.0.0 and removed needs: review labels Dec 9, 2019
Copy link
Contributor

@michalpasztamobica michalpasztamobica left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kivaisan , the code is fine (and smartly written, without copy&paste abuse), but I would like to request documentation update:
https://github.com/ARMmbed/mbed-os/blob/master/TESTS/netsocket/README.md

@kivaisan
Copy link
Contributor Author

kivaisan commented Dec 9, 2019

@kivaisan , the code is fine (and smartly written, without copy&paste abuse), but I would like to request documentation update:
https://github.com/ARMmbed/mbed-os/blob/master/TESTS/netsocket/README.md

Updated README with new tests.

@0xc0170
Copy link
Contributor

0xc0170 commented Dec 9, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented Dec 9, 2019

Test run: SUCCESS

Summary: 5 of 5 test jobs passed
Build number : 1
Build artifacts

@0xc0170 0xc0170 merged commit 9151ac9 into ARMmbed:master Dec 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-version: 6.0.0-alpha-1 First pre-release version of 6.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants