Method code for $outbound_connection.new_with()

[Turn on line numbering]
arg name;
var child, daemon, port, i;

(| .perms(sender(), 'trusts) |) || (> .perms(caller(), 'trusts) <);
child = .spawn();
catch any {
    (> child.set_objname(name) <);
} with {
    (| child.destroy() |);
    rethrow(error());
}

// do perms stuff
child.add_writer(sender());
child.new_interface(sender());
return child;

// Created 06-Oct-1996 as a part of ColdCore, see: @help Credit

Tlon