| Index: chrome/common/extensions/docs/templates/articles/app_network.html
|
| diff --git a/chrome/common/extensions/docs/templates/articles/app_network.html b/chrome/common/extensions/docs/templates/articles/app_network.html
|
| index 707f62b70524f15f06bd8e1ddc1bc258ab4ba62b..8daf9d5fe6256d0c529289ef0d54aa0b63692321 100644
|
| --- a/chrome/common/extensions/docs/templates/articles/app_network.html
|
| +++ b/chrome/common/extensions/docs/templates/articles/app_network.html
|
| @@ -69,7 +69,7 @@ Examples of socket permission rules:
|
| Packaged apps can make connections to any service that supports TCP.
|
| </p>
|
|
|
| -<h3>Connecting to a socket</h3>
|
| +<h3 id="connecting">Connecting to a socket</h3>
|
|
|
| <p>
|
| Here's a sample showing how to connect to a socket:
|
| @@ -90,7 +90,7 @@ you can later read and write to this socket.
|
| chrome.socket.write(socketId, arrayBuffer, onWriteCompleteCallback);
|
| </pre>
|
|
|
| -<h3>Reading to & writing from a socket</h3>
|
| +<h3 id="reading">Reading to & writing from a socket</h3>
|
|
|
| <p>
|
| Reading and writing from a socket uses ArrayBuffer objects.
|
| @@ -104,7 +104,7 @@ chrome.socket.read(socketId, null, function(readInfo) {
|
| });
|
| </pre>
|
|
|
| -<h3>Disconnecting from a socket</h3>
|
| +<h3 id="disconnecting">Disconnecting from a socket</h3>
|
|
|
| <p>Here's how to disconnect:</p>
|
|
|
| @@ -116,7 +116,7 @@ chrome.socket.read(socketId, null, function(readInfo) {
|
| Packaged apps can make connections to any service that supports UDP.
|
| </p>
|
|
|
| -<h3>Sending data</h3>
|
| +<h3 id="sending">Sending data</h3>
|
|
|
| <p>
|
| Here's a sample showing how to send data
|
| @@ -141,7 +141,7 @@ chrome.socket.create('udp', '127.0.0.1', 1337, {},
|
| );
|
| </pre>
|
|
|
| -<h3>Receiving data</h3>
|
| +<h3 id="receiving">Receiving data</h3>
|
|
|
| <p>
|
| This example is very similar to the 'Sending data' example
|
| @@ -175,4 +175,4 @@ chrome.socket.create('udp', '127.0.0.1', 1337, { onEvent: handleDataEvent },
|
| );
|
| </pre>
|
|
|
| -<p class="backtotop"><a href="#top">Back to top</a></p>
|
| +<p class="backtotop"><a href="#top">Back to top</a></p>
|
|
|