Backed out changeset 62f7af8fe549 (bug 1843981) for causing valgrind bustage. CLOSED...
[gecko.git] / dom / webidl / UDPMessageEvent.webidl
blob22ffc83f8901fbed27c11f7c355bf415cadd7588
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  */
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 = {});
18     readonly    attribute DOMString      remoteAddress;
19     readonly    attribute unsigned short remotePort;
20     readonly    attribute any            data;
23 dictionary UDPMessageEventInit : EventInit {
24   DOMString remoteAddress = "";
25   unsigned short remotePort = 0;
26   any data = null;