Skip to content

UDP sockect doc update #296

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 7 commits into from
Oct 30, 2017
Merged

UDP sockect doc update #296

merged 7 commits into from
Oct 30, 2017

Conversation

deepikabhavnani
Copy link

Jira: https://jira.arm.com/browse/IOTMORF-1309

Added the example reference of UDP client

@sg- Please review

Deepika and others added 2 commits October 18, 2017 17:09
Make minor copy edits, such as adding articles.
@AnotherButler AnotherButler requested a review from sg- October 18, 2017 23:41
Copy link
Contributor

@sg- sg- left a comment

Choose a reason for hiding this comment

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

Examples should be in the example team location, not personal user accounts

@deepikabhavnani
Copy link
Author

@sg- Please review

@@ -2,6 +2,14 @@

The UDPSocket class provides the ability to send packets of data over UDP, using the `sendto` and `recvfrom` member functions. Packets can be lost or arrive out of order, so we suggest using a [TCPSocket](/docs/v5.6/reference/tcpsocket.html) when you require guaranteed delivery.

The constructor takes in the [NetworkStack](/docs/v5.6/mbed-os-api-doxy/class_network_stack.html) or [NetworkInterface](/docs/v5.6/mbed-os-api-doxy/class_network_interface.html) pointer to open the socket on specified NetworkInterface. If NetworkInterface is not passed in constructor, than you must call `open` to initialize the socket.
Copy link
Contributor

Choose a reason for hiding this comment

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

same comments as TCP

deepikabhavnani and others added 2 commits October 26, 2017 09:54
@@ -2,6 +2,14 @@

The UDPSocket class provides the ability to send packets of data over UDP, using the `sendto` and `recvfrom` member functions. Packets can be lost or arrive out of order, so we suggest using a [TCPSocket](/docs/v5.6/reference/tcpsocket.html) when you require guaranteed delivery.

The constructor takes in the NetworkStack pointer to open the socket on the specified NetworkInterface. If NetworkStack is not passed in the constructor, then you must call `open` to initialize the socket.
Copy link
Contributor

Choose a reason for hiding this comment

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

Query: Who or what passes in the constructor?

Copy link
Author

Choose a reason for hiding this comment

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

NetworkStack pointer

Amanda Butler added 2 commits October 30, 2017 10:33
Make minor update to change passive voice to active voice.
Fix content I accidentally changed.
@AnotherButler AnotherButler merged commit a3c0360 into ARMmbed:new_engine Oct 30, 2017
@deepikabhavnani deepikabhavnani deleted the udp_socket branch October 30, 2017 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants