mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-09-10 11:54:40 +00:00
21 lines
590 B
JavaScript
21 lines
590 B
JavaScript
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;
|
|
}
|