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

system.verbs.apps.netEvents.addressEncode

on addressEncode (ipAddress) { <<Turn a dotted IP address into a 4-byte number
	local (i, encoded);
	for i = 1 to 4 {
		encoded = (encoded * 256) + number (string.nthField (ipAddress, '.', i))};
	return (encoded)}
<<bundle <<test code
	<<netEvents.addressEncode ("206.204.24.4")
		<<-825485308



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.