[Project_owners] recveiving UDP-Broadcasts from JavaScript

Ben Bucksch ben.bucksch.news at beonex.com
Thu Dec 25 18:40:38 EST 2003


Bernd Eckstein wrote:

> 2nd, my question. I'm trying to receive UDP-Broadcasts with JavaScript 
> in a xpi. I think I've to use the NSPR, but I've no idea how to access. 

You can't use NSPR directly from JS, it's a C API. You can only access 
APIs in IDL and marked as scriptable (as well as a few built-in JS 
APIs). So, you'd probably have to use netwerk APIs or implement one.



More information about the Project_owners mailing list