TCP Socket example using WiFi interface

Committer:
sarahmarshy
Date:
Fri Jun 23 16:38:56 2017 -0500
Revision:
1:ed8f6162cecf
Parent:
0:6a4e57edc2b2
"Update mbed-os"

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mab5449 0:6a4e57edc2b2 1 Apache License
mab5449 0:6a4e57edc2b2 2 Version 2.0, January 2004
mab5449 0:6a4e57edc2b2 3 http://www.apache.org/licenses/
mab5449 0:6a4e57edc2b2 4
mab5449 0:6a4e57edc2b2 5 TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
mab5449 0:6a4e57edc2b2 6
mab5449 0:6a4e57edc2b2 7 1. Definitions.
mab5449 0:6a4e57edc2b2 8
mab5449 0:6a4e57edc2b2 9 "License" shall mean the terms and conditions for use, reproduction,
mab5449 0:6a4e57edc2b2 10 and distribution as defined by Sections 1 through 9 of this document.
mab5449 0:6a4e57edc2b2 11
mab5449 0:6a4e57edc2b2 12 "Licensor" shall mean the copyright owner or entity authorized by
mab5449 0:6a4e57edc2b2 13 the copyright owner that is granting the License.
mab5449 0:6a4e57edc2b2 14
mab5449 0:6a4e57edc2b2 15 "Legal Entity" shall mean the union of the acting entity and all
mab5449 0:6a4e57edc2b2 16 other entities that control, are controlled by, or are under common
mab5449 0:6a4e57edc2b2 17 control with that entity. For the purposes of this definition,
mab5449 0:6a4e57edc2b2 18 "control" means (i) the power, direct or indirect, to cause the
mab5449 0:6a4e57edc2b2 19 direction or management of such entity, whether by contract or
mab5449 0:6a4e57edc2b2 20 otherwise, or (ii) ownership of fifty percent (50%) or more of the
mab5449 0:6a4e57edc2b2 21 outstanding shares, or (iii) beneficial ownership of such entity.
mab5449 0:6a4e57edc2b2 22
mab5449 0:6a4e57edc2b2 23 "You" (or "Your") shall mean an individual or Legal Entity
mab5449 0:6a4e57edc2b2 24 exercising permissions granted by this License.
mab5449 0:6a4e57edc2b2 25
mab5449 0:6a4e57edc2b2 26 "Source" form shall mean the preferred form for making modifications,
mab5449 0:6a4e57edc2b2 27 including but not limited to software source code, documentation
mab5449 0:6a4e57edc2b2 28 source, and configuration files.
mab5449 0:6a4e57edc2b2 29
mab5449 0:6a4e57edc2b2 30 "Object" form shall mean any form resulting from mechanical
mab5449 0:6a4e57edc2b2 31 transformation or translation of a Source form, including but
mab5449 0:6a4e57edc2b2 32 not limited to compiled object code, generated documentation,
mab5449 0:6a4e57edc2b2 33 and conversions to other media types.
mab5449 0:6a4e57edc2b2 34
mab5449 0:6a4e57edc2b2 35 "Work" shall mean the work of authorship, whether in Source or
mab5449 0:6a4e57edc2b2 36 Object form, made available under the License, as indicated by a
mab5449 0:6a4e57edc2b2 37 copyright notice that is included in or attached to the work
mab5449 0:6a4e57edc2b2 38 (an example is provided in the Appendix below).
mab5449 0:6a4e57edc2b2 39
mab5449 0:6a4e57edc2b2 40 "Derivative Works" shall mean any work, whether in Source or Object
mab5449 0:6a4e57edc2b2 41 form, that is based on (or derived from) the Work and for which the
mab5449 0:6a4e57edc2b2 42 editorial revisions, annotations, elaborations, or other modifications
mab5449 0:6a4e57edc2b2 43 represent, as a whole, an original work of authorship. For the purposes
mab5449 0:6a4e57edc2b2 44 of this License, Derivative Works shall not include works that remain
mab5449 0:6a4e57edc2b2 45 separable from, or merely link (or bind by name) to the interfaces of,
mab5449 0:6a4e57edc2b2 46 the Work and Derivative Works thereof.
mab5449 0:6a4e57edc2b2 47
mab5449 0:6a4e57edc2b2 48 "Contribution" shall mean any work of authorship, including
mab5449 0:6a4e57edc2b2 49 the original version of the Work and any modifications or additions
mab5449 0:6a4e57edc2b2 50 to that Work or Derivative Works thereof, that is intentionally
mab5449 0:6a4e57edc2b2 51 submitted to Licensor for inclusion in the Work by the copyright owner
mab5449 0:6a4e57edc2b2 52 or by an individual or Legal Entity authorized to submit on behalf of
mab5449 0:6a4e57edc2b2 53 the copyright owner. For the purposes of this definition, "submitted"
mab5449 0:6a4e57edc2b2 54 means any form of electronic, verbal, or written communication sent
mab5449 0:6a4e57edc2b2 55 to the Licensor or its representatives, including but not limited to
mab5449 0:6a4e57edc2b2 56 communication on electronic mailing lists, source code control systems,
mab5449 0:6a4e57edc2b2 57 and issue tracking systems that are managed by, or on behalf of, the
mab5449 0:6a4e57edc2b2 58 Licensor for the purpose of discussing and improving the Work, but
mab5449 0:6a4e57edc2b2 59 excluding communication that is conspicuously marked or otherwise
mab5449 0:6a4e57edc2b2 60 designated in writing by the copyright owner as "Not a Contribution."
mab5449 0:6a4e57edc2b2 61
mab5449 0:6a4e57edc2b2 62 "Contributor" shall mean Licensor and any individual or Legal Entity
mab5449 0:6a4e57edc2b2 63 on behalf of whom a Contribution has been received by Licensor and
mab5449 0:6a4e57edc2b2 64 subsequently incorporated within the Work.
mab5449 0:6a4e57edc2b2 65
mab5449 0:6a4e57edc2b2 66 2. Grant of Copyright License. Subject to the terms and conditions of
mab5449 0:6a4e57edc2b2 67 this License, each Contributor hereby grants to You a perpetual,
mab5449 0:6a4e57edc2b2 68 worldwide, non-exclusive, no-charge, royalty-free, irrevocable
mab5449 0:6a4e57edc2b2 69 copyright license to reproduce, prepare Derivative Works of,
mab5449 0:6a4e57edc2b2 70 publicly display, publicly perform, sublicense, and distribute the
mab5449 0:6a4e57edc2b2 71 Work and such Derivative Works in Source or Object form.
mab5449 0:6a4e57edc2b2 72
mab5449 0:6a4e57edc2b2 73 3. Grant of Patent License. Subject to the terms and conditions of
mab5449 0:6a4e57edc2b2 74 this License, each Contributor hereby grants to You a perpetual,
mab5449 0:6a4e57edc2b2 75 worldwide, non-exclusive, no-charge, royalty-free, irrevocable
mab5449 0:6a4e57edc2b2 76 (except as stated in this section) patent license to make, have made,
mab5449 0:6a4e57edc2b2 77 use, offer to sell, sell, import, and otherwise transfer the Work,
mab5449 0:6a4e57edc2b2 78 where such license applies only to those patent claims licensable
mab5449 0:6a4e57edc2b2 79 by such Contributor that are necessarily infringed by their
mab5449 0:6a4e57edc2b2 80 Contribution(s) alone or by combination of their Contribution(s)
mab5449 0:6a4e57edc2b2 81 with the Work to which such Contribution(s) was submitted. If You
mab5449 0:6a4e57edc2b2 82 institute patent litigation against any entity (including a
mab5449 0:6a4e57edc2b2 83 cross-claim or counterclaim in a lawsuit) alleging that the Work
mab5449 0:6a4e57edc2b2 84 or a Contribution incorporated within the Work constitutes direct
mab5449 0:6a4e57edc2b2 85 or contributory patent infringement, then any patent licenses
mab5449 0:6a4e57edc2b2 86 granted to You under this License for that Work shall terminate
mab5449 0:6a4e57edc2b2 87 as of the date such litigation is filed.
mab5449 0:6a4e57edc2b2 88
mab5449 0:6a4e57edc2b2 89 4. Redistribution. You may reproduce and distribute copies of the
mab5449 0:6a4e57edc2b2 90 Work or Derivative Works thereof in any medium, with or without
mab5449 0:6a4e57edc2b2 91 modifications, and in Source or Object form, provided that You
mab5449 0:6a4e57edc2b2 92 meet the following conditions:
mab5449 0:6a4e57edc2b2 93
mab5449 0:6a4e57edc2b2 94 (a) You must give any other recipients of the Work or
mab5449 0:6a4e57edc2b2 95 Derivative Works a copy of this License; and
mab5449 0:6a4e57edc2b2 96
mab5449 0:6a4e57edc2b2 97 (b) You must cause any modified files to carry prominent notices
mab5449 0:6a4e57edc2b2 98 stating that You changed the files; and
mab5449 0:6a4e57edc2b2 99
mab5449 0:6a4e57edc2b2 100 (c) You must retain, in the Source form of any Derivative Works
mab5449 0:6a4e57edc2b2 101 that You distribute, all copyright, patent, trademark, and
mab5449 0:6a4e57edc2b2 102 attribution notices from the Source form of the Work,
mab5449 0:6a4e57edc2b2 103 excluding those notices that do not pertain to any part of
mab5449 0:6a4e57edc2b2 104 the Derivative Works; and
mab5449 0:6a4e57edc2b2 105
mab5449 0:6a4e57edc2b2 106 (d) If the Work includes a "NOTICE" text file as part of its
mab5449 0:6a4e57edc2b2 107 distribution, then any Derivative Works that You distribute must
mab5449 0:6a4e57edc2b2 108 include a readable copy of the attribution notices contained
mab5449 0:6a4e57edc2b2 109 within such NOTICE file, excluding those notices that do not
mab5449 0:6a4e57edc2b2 110 pertain to any part of the Derivative Works, in at least one
mab5449 0:6a4e57edc2b2 111 of the following places: within a NOTICE text file distributed
mab5449 0:6a4e57edc2b2 112 as part of the Derivative Works; within the Source form or
mab5449 0:6a4e57edc2b2 113 documentation, if provided along with the Derivative Works; or,
mab5449 0:6a4e57edc2b2 114 within a display generated by the Derivative Works, if and
mab5449 0:6a4e57edc2b2 115 wherever such third-party notices normally appear. The contents
mab5449 0:6a4e57edc2b2 116 of the NOTICE file are for informational purposes only and
mab5449 0:6a4e57edc2b2 117 do not modify the License. You may add Your own attribution
mab5449 0:6a4e57edc2b2 118 notices within Derivative Works that You distribute, alongside
mab5449 0:6a4e57edc2b2 119 or as an addendum to the NOTICE text from the Work, provided
mab5449 0:6a4e57edc2b2 120 that such additional attribution notices cannot be construed
mab5449 0:6a4e57edc2b2 121 as modifying the License.
mab5449 0:6a4e57edc2b2 122
mab5449 0:6a4e57edc2b2 123 You may add Your own copyright statement to Your modifications and
mab5449 0:6a4e57edc2b2 124 may provide additional or different license terms and conditions
mab5449 0:6a4e57edc2b2 125 for use, reproduction, or distribution of Your modifications, or
mab5449 0:6a4e57edc2b2 126 for any such Derivative Works as a whole, provided Your use,
mab5449 0:6a4e57edc2b2 127 reproduction, and distribution of the Work otherwise complies with
mab5449 0:6a4e57edc2b2 128 the conditions stated in this License.
mab5449 0:6a4e57edc2b2 129
mab5449 0:6a4e57edc2b2 130 5. Submission of Contributions. Unless You explicitly state otherwise,
mab5449 0:6a4e57edc2b2 131 any Contribution intentionally submitted for inclusion in the Work
mab5449 0:6a4e57edc2b2 132 by You to the Licensor shall be under the terms and conditions of
mab5449 0:6a4e57edc2b2 133 this License, without any additional terms or conditions.
mab5449 0:6a4e57edc2b2 134 Notwithstanding the above, nothing herein shall supersede or modify
mab5449 0:6a4e57edc2b2 135 the terms of any separate license agreement you may have executed
mab5449 0:6a4e57edc2b2 136 with Licensor regarding such Contributions.
mab5449 0:6a4e57edc2b2 137
mab5449 0:6a4e57edc2b2 138 6. Trademarks. This License does not grant permission to use the trade
mab5449 0:6a4e57edc2b2 139 names, trademarks, service marks, or product names of the Licensor,
mab5449 0:6a4e57edc2b2 140 except as required for reasonable and customary use in describing the
mab5449 0:6a4e57edc2b2 141 origin of the Work and reproducing the content of the NOTICE file.
mab5449 0:6a4e57edc2b2 142
mab5449 0:6a4e57edc2b2 143 7. Disclaimer of Warranty. Unless required by applicable law or
mab5449 0:6a4e57edc2b2 144 agreed to in writing, Licensor provides the Work (and each
mab5449 0:6a4e57edc2b2 145 Contributor provides its Contributions) on an "AS IS" BASIS,
mab5449 0:6a4e57edc2b2 146 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
mab5449 0:6a4e57edc2b2 147 implied, including, without limitation, any warranties or conditions
mab5449 0:6a4e57edc2b2 148 of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
mab5449 0:6a4e57edc2b2 149 PARTICULAR PURPOSE. You are solely responsible for determining the
mab5449 0:6a4e57edc2b2 150 appropriateness of using or redistributing the Work and assume any
mab5449 0:6a4e57edc2b2 151 risks associated with Your exercise of permissions under this License.
mab5449 0:6a4e57edc2b2 152
mab5449 0:6a4e57edc2b2 153 8. Limitation of Liability. In no event and under no legal theory,
mab5449 0:6a4e57edc2b2 154 whether in tort (including negligence), contract, or otherwise,
mab5449 0:6a4e57edc2b2 155 unless required by applicable law (such as deliberate and grossly
mab5449 0:6a4e57edc2b2 156 negligent acts) or agreed to in writing, shall any Contributor be
mab5449 0:6a4e57edc2b2 157 liable to You for damages, including any direct, indirect, special,
mab5449 0:6a4e57edc2b2 158 incidental, or consequential damages of any character arising as a
mab5449 0:6a4e57edc2b2 159 result of this License or out of the use or inability to use the
mab5449 0:6a4e57edc2b2 160 Work (including but not limited to damages for loss of goodwill,
mab5449 0:6a4e57edc2b2 161 work stoppage, computer failure or malfunction, or any and all
mab5449 0:6a4e57edc2b2 162 other commercial damages or losses), even if such Contributor
mab5449 0:6a4e57edc2b2 163 has been advised of the possibility of such damages.
mab5449 0:6a4e57edc2b2 164
mab5449 0:6a4e57edc2b2 165 9. Accepting Warranty or Additional Liability. While redistributing
mab5449 0:6a4e57edc2b2 166 the Work or Derivative Works thereof, You may choose to offer,
mab5449 0:6a4e57edc2b2 167 and charge a fee for, acceptance of support, warranty, indemnity,
mab5449 0:6a4e57edc2b2 168 or other liability obligations and/or rights consistent with this
mab5449 0:6a4e57edc2b2 169 License. However, in accepting such obligations, You may act only
mab5449 0:6a4e57edc2b2 170 on Your own behalf and on Your sole responsibility, not on behalf
mab5449 0:6a4e57edc2b2 171 of any other Contributor, and only if You agree to indemnify,
mab5449 0:6a4e57edc2b2 172 defend, and hold each Contributor harmless for any liability
mab5449 0:6a4e57edc2b2 173 incurred by, or claims asserted against, such Contributor by reason
mab5449 0:6a4e57edc2b2 174 of your accepting any such warranty or additional liability.
mab5449 0:6a4e57edc2b2 175
mab5449 0:6a4e57edc2b2 176 END OF TERMS AND CONDITIONS
mab5449 0:6a4e57edc2b2 177
mab5449 0:6a4e57edc2b2 178 APPENDIX: How to apply the Apache License to your work.
mab5449 0:6a4e57edc2b2 179
mab5449 0:6a4e57edc2b2 180 To apply the Apache License to your work, attach the following
mab5449 0:6a4e57edc2b2 181 boilerplate notice, with the fields enclosed by brackets "{}"
mab5449 0:6a4e57edc2b2 182 replaced with your own identifying information. (Don't include
mab5449 0:6a4e57edc2b2 183 the brackets!) The text should be enclosed in the appropriate
mab5449 0:6a4e57edc2b2 184 comment syntax for the file format. We also recommend that a
mab5449 0:6a4e57edc2b2 185 file or class name and description of purpose be included on the
mab5449 0:6a4e57edc2b2 186 same "printed page" as the copyright notice for easier
mab5449 0:6a4e57edc2b2 187 identification within third-party archives.
mab5449 0:6a4e57edc2b2 188
mab5449 0:6a4e57edc2b2 189 Copyright {yyyy} {name of copyright owner}
mab5449 0:6a4e57edc2b2 190
mab5449 0:6a4e57edc2b2 191 Licensed under the Apache License, Version 2.0 (the "License");
mab5449 0:6a4e57edc2b2 192 you may not use this file except in compliance with the License.
mab5449 0:6a4e57edc2b2 193 You may obtain a copy of the License at
mab5449 0:6a4e57edc2b2 194
mab5449 0:6a4e57edc2b2 195 http://www.apache.org/licenses/LICENSE-2.0
mab5449 0:6a4e57edc2b2 196
mab5449 0:6a4e57edc2b2 197 Unless required by applicable law or agreed to in writing, software
mab5449 0:6a4e57edc2b2 198 distributed under the License is distributed on an "AS IS" BASIS,
mab5449 0:6a4e57edc2b2 199 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
mab5449 0:6a4e57edc2b2 200 See the License for the specific language governing permissions and
mab5449 0:6a4e57edc2b2 201 limitations under the License.