Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(283)

Side by Side Diff: native_client_sdk/doc_generated/sdk/examples.html

Issue 910983002: NaCl docs: fix TCP link (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « native_client_sdk/doc_generated/faq.html ('k') | native_client_sdk/src/doc/faq.rst » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 {{+bindTo:partials.standard_nacl_article}} 1 {{+bindTo:partials.standard_nacl_article}}
2 2
3 <span class="target" id="sdk-examples-2"></span><section id="examples"> 3 <span class="target" id="sdk-examples-2"></span><section id="examples">
4 <h1 id="examples">Examples</h1> 4 <h1 id="examples">Examples</h1>
5 <p>Every Native Client SDK bundle comes with a folder of example applications. 5 <p>Every Native Client SDK bundle comes with a folder of example applications.
6 Each example demonstrates one or two key Native Client programming concepts. 6 Each example demonstrates one or two key Native Client programming concepts.
7 After you&#8217;ve <a class="reference internal" href="/native-client/sdk/downlo ad.html"><em>downloaded the SDK</em></a>, follow the instructions 7 After you&#8217;ve <a class="reference internal" href="/native-client/sdk/downlo ad.html"><em>downloaded the SDK</em></a>, follow the instructions
8 on this page to build and run the examples.</p> 8 on this page to build and run the examples.</p>
9 <p>Your version of Chrome must be equal to or greater than the version of your S DK 9 <p>Your version of Chrome must be equal to or greater than the version of your S DK
10 bundle. For example, if you&#8217;re developing with the <code>pepper_35</code> bundle, you 10 bundle. For example, if you&#8217;re developing with the <code>pepper_35</code> bundle, you
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 </pre> 164 </pre>
165 </li> 165 </li>
166 </ul> 166 </ul>
167 <h2 id="run-the-sdk-examples-as-packaged-apps"><span id="run-sdk-examples-as-pac kaged"></span>Run the SDK examples as packaged apps</h2> 167 <h2 id="run-the-sdk-examples-as-packaged-apps"><span id="run-sdk-examples-as-pac kaged"></span>Run the SDK examples as packaged apps</h2>
168 <p>Each example can also be launched as a packaged application. A packaged 168 <p>Each example can also be launched as a packaged application. A packaged
169 application is a special zip file (with a .crx extension) hosted in the Chrome 169 application is a special zip file (with a .crx extension) hosted in the Chrome
170 Web Store. This file contains all of the application parts: A Chrome Web Store 170 Web Store. This file contains all of the application parts: A Chrome Web Store
171 manifest file (<code>manifest.json</code>), an icon, and all of the regular Nati ve Client 171 manifest file (<code>manifest.json</code>), an icon, and all of the regular Nati ve Client
172 application files. Refer to <a class="reference external" href="/apps/about_apps ">What are Chrome Apps</a> for more 172 application files. Refer to <a class="reference external" href="/apps/about_apps ">What are Chrome Apps</a> for more
173 information about creating a packaged application.</p> 173 information about creating a packaged application.</p>
174 <p>Some Pepper features, such as <a class="reference external" href="pepper_stab le/cpp/classpp_1_1_u_d_p_socket">TCP</a> or <a class="reference external" href=" pepper_stable/cpp/classpp_1_1_u_d_p_socket">UDP</a> socket access, are only allo wed 174 <p>Some Pepper features, such as <a class="reference external" href="pepper_stab le/cpp/classpp_1_1_t_c_p_socket">TCP</a> or <a class="reference external" href=" pepper_stable/cpp/classpp_1_1_u_d_p_socket">UDP</a> socket access, are only allo wed
175 in <a class="reference external" href="/apps/about_apps">packaged applications</ a>. The examples that use these 175 in <a class="reference external" href="/apps/about_apps">packaged applications</ a>. The examples that use these
176 features must be run as <a class="reference external" href="/apps/about_apps">pa ckaged applications</a>, by using 176 features must be run as <a class="reference external" href="/apps/about_apps">pa ckaged applications</a>, by using
177 the following command:</p> 177 the following command:</p>
178 <pre class="prettyprint"> 178 <pre class="prettyprint">
179 $ make run_package 179 $ make run_package
180 </pre> 180 </pre>
181 <p>You can use <code>TOOLCHAIN</code> and <code>CONFIG</code> parameters as desc ribed above to run 181 <p>You can use <code>TOOLCHAIN</code> and <code>CONFIG</code> parameters as desc ribed above to run
182 with a different toolchain or configuration.</p> 182 with a different toolchain or configuration.</p>
183 <h2 id="debugging-the-sdk-examples"><span id="id5"></span>Debugging the SDK exam ples</h2> 183 <h2 id="debugging-the-sdk-examples"><span id="id5"></span>Debugging the SDK exam ples</h2>
184 <p>The NaCl SDK uses <a class="reference external" href="https://www.gnu.org/sof tware/gdb/">GDB</a> to debug Native 184 <p>The NaCl SDK uses <a class="reference external" href="https://www.gnu.org/sof tware/gdb/">GDB</a> to debug Native
(...skipping 16 matching lines...) Expand all
201 0x000000000fa00080 in ?? () 201 0x000000000fa00080 in ?? ()
202 </pre> 202 </pre>
203 <p>At this point, you can use the standard GDB commands to debug your NaCl modul e. 203 <p>At this point, you can use the standard GDB commands to debug your NaCl modul e.
204 The most common commands you will use to debug are <code>continue</code>, <code> step</code>, 204 The most common commands you will use to debug are <code>continue</code>, <code> step</code>,
205 <code>next</code>, <code>break</code> and <code>backtrace</code>. See 205 <code>next</code>, <code>break</code> and <code>backtrace</code>. See
206 <a class="reference internal" href="/native-client/devguide/devcycle/debugging.h tml"><em>Debugging</em></a> for more information about 206 <a class="reference internal" href="/native-client/devguide/devcycle/debugging.h tml"><em>Debugging</em></a> for more information about
207 debugging a Native Client application.</p> 207 debugging a Native Client application.</p>
208 </section> 208 </section>
209 209
210 {{/partials.standard_nacl_article}} 210 {{/partials.standard_nacl_article}}
OLDNEW
« no previous file with comments | « native_client_sdk/doc_generated/faq.html ('k') | native_client_sdk/src/doc/faq.rst » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698