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

Side by Side Diff: native_client_sdk/src/examples/api/socket/index.html

Issue 262803014: Fix typo, "recieve" -> "receive", in NaCl/SDK code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <!-- 3 <!--
4 Copyright (c) 2013 The Chromium Authors. All rights reserved. 4 Copyright (c) 2013 The Chromium Authors. All rights reserved.
5 Use of this source code is governed by a BSD-style license that can be 5 Use of this source code is governed by a BSD-style license that can be
6 found in the LICENSE file. 6 found in the LICENSE file.
7 --> 7 -->
8 <head> 8 <head>
9 <meta http-equiv="Pragma" content="no-cache"> 9 <meta http-equiv="Pragma" content="no-cache">
10 <meta http-equiv="Expires" content="-1"> 10 <meta http-equiv="Expires" content="-1">
11 <title>{{title}}</title> 11 <title>{{title}}</title>
12 <script type="text/javascript" src="common.js"></script> 12 <script type="text/javascript" src="common.js"></script>
13 <script type="text/javascript" src="example.js"></script> 13 <script type="text/javascript" src="example.js"></script>
14 </head> 14 </head>
15 <body {{attrs}}> 15 <body {{attrs}}>
16 <h1>{{title}}</h1> 16 <h1>{{title}}</h1>
17 <h2>Status: <code id="statusField">NO-STATUS</code></h2> 17 <h2>Status: <code id="statusField">NO-STATUS</code></h2>
18 <p>The socket example demonstrates how to use the TCP and UDP socket API.<br> 18 <p>The socket example demonstrates how to use the TCP and UDP socket API.<br>
19 This API is normally only available to packaged apps with the requisite 19 This API is normally only available to packaged apps with the requisite
20 socket permission, but can be enabled for debugging purposes using the 20 socket permission, but can be enabled for debugging purposes using the
21 <code>--allow-nacl-socket-api=&lt;hostname&gt;</code> command line 21 <code>--allow-nacl-socket-api=&lt;hostname&gt;</code> command line
22 flag.<br> 22 flag.<br>
23 First set a server address in the form of 'hostname:port', then push the 23 First set a server address in the form of 'hostname:port', then push the
24 "Connect" button to establish a connection.<br> 24 "Connect" button to establish a connection.<br>
25 "Send" button sends the message of the text area to the the remote host. 25 "Send" button sends the message of the text area to the the remote host.
26 Any data recieved back will be output to the status log.<br> 26 Any data received back will be output to the status log.<br>
27 For example, try connecting to a TCP echo server that will reply with 27 For example, try connecting to a TCP echo server that will reply with
28 whatever bytes you send, or connect to a web server and send a GET 28 whatever bytes you send, or connect to a web server and send a GET
29 request.<br> 29 request.<br>
30 "Close" button closes the connection.<br> 30 "Close" button closes the connection.<br>
31 </p> 31 </p>
32 32
33 <form id="connectForm"> 33 <form id="connectForm">
34 <select id="connect_type"> 34 <select id="connect_type">
35 <option value="tcp">TCP</option> 35 <option value="tcp">TCP</option>
36 <option value="udp">UDP</option> 36 <option value="udp">UDP</option>
(...skipping 26 matching lines...) Expand all
63 <input type="text" id="port" value="8080" size="6"> 63 <input type="text" id="port" value="8080" size="6">
64 <input type="submit" value="Listen"> 64 <input type="submit" value="Listen">
65 </form> 65 </form>
66 </p> 66 </p>
67 </div> 67 </div>
68 68
69 <pre id="log" style="font-weight: bold"></pre> 69 <pre id="log" style="font-weight: bold"></pre>
70 <div id="listener"></div> 70 <div id="listener"></div>
71 </body> 71 </body>
72 </html> 72 </html>
OLDNEW
« no previous file with comments | « components/nacl/browser/nacl_process_host.cc ('k') | native_client_sdk/src/examples/tutorial/using_ppapi_simple/example.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698