Monday, November 08, 2010 at 12:01 AM.

system.verbs.apps.netEvents.addressDecode

on addressDecode (encodedAdr) { <<Turn a 4-byte number into a dotted IP address
	local (s = string.hex (encodedAdr));
	local (ip = "", i);
	for i = 1 to 4 {
		s = string.delete (s, 1, 2);
		ip = ip + number ("0x" + string.mid (s, 1, 2)) + "."};
	return (string.mid (ip, 1, sizeof (ip) - 1))};
bundle { <<test code
	netEvents.addressDecode (-825485308)}
		<<"206.204.24.4"



This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.