blob: b72588360f9eaf4cf2d5cc659d28a3f23cfa5c07 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
var EXPORTED_SYMBOLS = [
"createSocket",
"createServer",
"socketCompartmentInstanceOfArrayBuffer",
];
var createSocket = function(host, port, options) {
return new TCPSocket(host, port, options);
};
var createServer = function(port, options, backlog) {
return new TCPServerSocket(port, options, backlog);
};
// See test_tcpsocket_client_and_server_basics.html's version for rationale.
var socketCompartmentInstanceOfArrayBuffer = function(obj) {
return obj instanceof ArrayBuffer;
};
|