GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
target_parent(3) Arcan Lua API target_parent(3)

target_parent - Lookup the frameserver VID of the parent to a subsegment

vid
target_parent( vid )

This function can be used to determine if a specific vid is a subsegment to a frameserver, and if so, get the primary vid associated with that frameserver.

1
It is not guaranteed that the returned vid points to a valid frameserver or vid if the connection has been pacified or terminated externally.

function target_parent0()
      local a = target_alloc("test", function() end);
      b = target_alloc(a, function() end);
      if (target_parent(b) != a) then
            shutdown("reported subsegment parent is invalid", -1);
      else
            shutdown("");
      end
end

function target_parent1()
      local a = target_alloc("test", function() end);
      if (valid_vid(target_parent(a))) then
            shutdown("connection point should not have a parent", -1);
      else
            shutdown("");
      end
end

June 2022 targetcontrol

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.