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[Constructor(DOMString type, optional UDPMessageEventInit eventInitDict), 12 Pref="dom.udpsocket.enabled", 13 ChromeOnly] 14interface UDPMessageEvent : Event { 15 readonly attribute DOMString remoteAddress; 16 readonly attribute unsigned short remotePort; 17 readonly attribute any data; 18}; 19 20dictionary UDPMessageEventInit : EventInit { 21 DOMString remoteAddress = ""; 22 unsigned short remotePort = 0; 23 any data = null; 24}; 25