-
Notifications
You must be signed in to change notification settings - Fork 178
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
Conversation
Make minor copy edits, such as adding articles.
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.
Examples should be in the example team location, not personal user accounts
@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. |
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.
same comments as TCP
Make minor copy edit to add articles.
@@ -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. |
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.
Query: Who or what passes in the constructor?
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.
NetworkStack pointer
Make minor update to change passive voice to active voice.
Fix content I accidentally changed.
Jira: https://jira.arm.com/browse/IOTMORF-1309
Added the example reference of UDP client
@sg- Please review