tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

UDPMessageEvent.webidl (973B)


      1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* This Source Code Form is subject to the terms of the Mozilla Public
      3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
      4 * You can obtain one at http://mozilla.org/MPL/2.0/.
      5 *
      6 * The origin of this IDL file is
      7 * http://www.w3.org/TR/raw-sockets/#interface-udpmessageevent
      8 */
      9 
     10 //Bug 1056444: This interface should be removed after UDPSocket.input/UDPSocket.output are ready.
     11 [Pref="dom.udpsocket.enabled",
     12 ChromeOnly,
     13 Exposed=Window]
     14 interface UDPMessageEvent : Event {
     15    constructor(DOMString type,
     16                optional UDPMessageEventInit eventInitDict = {});
     17 
     18    readonly    attribute DOMString      remoteAddress;
     19    readonly    attribute unsigned short remotePort;
     20    readonly    attribute any            data;
     21 };
     22 
     23 dictionary UDPMessageEventInit : EventInit {
     24  DOMString remoteAddress = "";
     25  unsigned short remotePort = 0;
     26  any data = null;
     27 };