OLD | NEW |
1 <div id="pageData-name" class="pageData">Network Communications</div> | 1 <h1>Network Communications</h1> |
2 <div id="pageData-showTOC" class="pageData">true</div> | 2 |
3 | 3 |
4 <p> | 4 <p> |
5 Packaged apps can act as a network client | 5 Packaged apps can act as a network client |
6 for TCP and UDP connections. | 6 for TCP and UDP connections. |
7 This doc shows you how to use TCP and UDP | 7 This doc shows you how to use TCP and UDP |
8 to send and receive data over the network. | 8 to send and receive data over the network. |
9 For more information, | 9 For more information, |
10 see the | 10 see the |
11 <a href="experimental.socket.html">Sockets API</a>. | 11 <a href="experimental.socket.html">Sockets API</a>. |
12 </p> | 12 </p> |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 chrome.experimental.socket.write(socketId, arrayBuffer, | 139 chrome.experimental.socket.write(socketId, arrayBuffer, |
140 function(sendInfo) { | 140 function(sendInfo) { |
141 console.log("wrote " + sendInfo.bytesWritten); | 141 console.log("wrote " + sendInfo.bytesWritten); |
142 } | 142 } |
143 ); | 143 ); |
144 }); | 144 }); |
145 } | 145 } |
146 ); | 146 ); |
147 </pre> | 147 </pre> |
148 | 148 |
149 <p class="backtotop"><a href="#top">Back to top</a></p> | 149 <p class="backtotop"><a href="#top">Back to top</a></p> |
150 | |
OLD | NEW |