Method code for $outbound_connection.new_with()

[Turn off line numbering]
  1: arg name;
  2: var child, daemon, port, i;
  3: 
  4: (| .perms(sender(), 'trusts) |) || (> .perms(caller(), 'trusts) <);
  5: child = .spawn();
  6: catch any {
  7:     (> child.set_objname(name) <);
  8: } with {
  9:     (| child.destroy() |);
 10:     rethrow(error());
 11: }
 12: 
 13: // do perms stuff
 14: child.add_writer(sender());
 15: child.new_interface(sender());
 16: return child;

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

Tlon