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

Side by Side Diff: chrome/common/extensions/docs/templates/articles/app_network.html

Issue 561733004: Fixing path to chrome app samples in documentation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding app.yaml and cron.yaml vesion update Created 6 years, 3 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
OLDNEW
1 <h1>Network Communications</h1> 1 <h1>Network Communications</h1>
2 2
3 <p> 3 <p>
4 Chrome Apps can act as a network client 4 Chrome Apps can act as a network client
5 for TCP and UDP connections. 5 for TCP and UDP connections.
6 This doc shows you how to use TCP and UDP 6 This doc shows you how to use TCP and UDP
7 to send and receive data over the network. 7 to send and receive data over the network.
8 For more information, 8 For more information,
9 see the 9 see the
10 <a href="sockets_udp">Sockets UDP</a>, 10 <a href="sockets_udp">Sockets UDP</a>,
11 <a href="sockets_tcp">Sockets TCP</a> and 11 <a href="sockets_tcp">Sockets TCP</a> and
12 <a href="sockets_tcp_server">Sockets TCP Server</a> APIs. 12 <a href="sockets_tcp_server">Sockets TCP Server</a> APIs.
13 </p> 13 </p>
14 14
15 <p class="note"> 15 <p class="note">
16 <b>Note: </b>The previous version of the networking APIs ($(ref:socket)) has bee n 16 <b>Note: </b>The previous version of the networking APIs ($(ref:socket)) has bee n
17 deprecated. 17 deprecated.
18 </p> 18 </p>
19 <p></p> 19 <p></p>
20 <p class="note"> 20 <p class="note">
21 <b>API Samples: </b> 21 <b>API Samples: </b>
22 Want to play with the code? 22 Want to play with the code?
23 Check out the 23 Check out the
24 <a href="https://github.com/GoogleChrome/chrome-app-samples/tree/master/telnet"> telnet</a> 24 <a href="https://github.com/GoogleChrome/chrome-app-samples/tree/master/samples/ telnet">telnet</a>
25 and <a href="https://github.com/GoogleChrome/chrome-app-samples/tree/master/udp" >udp</a> samples. 25 and <a href="https://github.com/GoogleChrome/chrome-app-samples/tree/master/samp les/udp">udp</a> samples.
26 </p> 26 </p>
27 27
28 <h2 id="manifest">Manifest requirements</h2> 28 <h2 id="manifest">Manifest requirements</h2>
29 29
30 <p> 30 <p>
31 For Chrome Apps that use TCP or UDP, 31 For Chrome Apps that use TCP or UDP,
32 add the <a href="manifest/sockets">sockets</a> entry to the manifest 32 add the <a href="manifest/sockets">sockets</a> entry to the manifest
33 and specify the IP end point permission rules. 33 and specify the IP end point permission rules.
34 For example: 34 For example:
35 </p> 35 </p>
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 Call $(ref:sockets.tcp.disconnect) on the server socket ID to stop accepting 286 Call $(ref:sockets.tcp.disconnect) on the server socket ID to stop accepting
287 new connections. 287 new connections.
288 </p> 288 </p>
289 289
290 <pre> 290 <pre>
291 chrome.sockets.tcpServer.onAccept.removeListener(onAccept); 291 chrome.sockets.tcpServer.onAccept.removeListener(onAccept);
292 chrome.sockets.tcpServer.disconnect(serverSocketId);</pre> 292 chrome.sockets.tcpServer.disconnect(serverSocketId);</pre>
293 293
294 294
295 <p class="backtotop"><a href="#top">Back to top</a></p> 295 <p class="backtotop"><a href="#top">Back to top</a></p>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698