Monday, November 08, 2010 at 12:06 AM.
system.verbs.builtins.tcp.im.findDriver
on findDriver (type, adradrdriver) {
<<Changes
<<5/6/02; 8:07:29 PM by DW
<<Created.
tcp.im.init ();
on findInTable (adrtable) {
local (adr = @adrtable^.[type]);
if not defined (adr^) {
return (false)};
while typeof (adr^) == addressType {
adr = adr^};
adradrdriver^ = adr;
return (true)};
if findInTable (@user.im.drivers) {
return (true)};
if findInTable (@tcp.im.builtinDrivers) {
return (true)};
return (false)}
<<bundle //test code
<<local (adrdriver)
<<findDriver ("aim", @adrdriver)
<<dialog.alert (adrdriver)
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.