Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

nsIUDPSocket.idl

Go to the documentation of this file.
00001 #include "nsISupports.idl"
00002 
00003 interface nsIUDPSocket;
00004 
00005 [scriptable, uuid(f0aca68a-b00d-4ae9-b037-ac6d9b8349dd)]
00006 interface nsIDatagram : nsISupports
00007 {
00008   readonly attribute ACString data;
00009 
00013   readonly attribute ACString address;
00014 
00018   readonly attribute long port;
00019 };
00020 
00021 [scriptable, uuid(05360e27-ad43-4219-aeab-1561dee08511)]
00022 interface nsIUDPReceiver : nsISupports
00023 {
00024   void handleDatagram(in nsIUDPSocket socket, in nsIDatagram data);
00025 };
00026 
00027 [scriptable, uuid(437078ab-ed16-44f5-b828-18dcc1c8c607)]
00028 interface nsIUDPSocket : nsISupports
00029 {
00030   void init(in long aPort);
00031   void close();
00032 
00033   void send(in ACString data, in ACString address, in long port);
00034   
00035   void setReceiver(in nsIUDPReceiver receiver);
00036 
00040   readonly attribute long port;
00041 
00045   readonly attribute ACString address;
00046 };

Generated on Fri Nov 21 12:00:05 2008 for Mozilla ZAP by  doxygen 1.4.4