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