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_devicehint(3) Arcan Lua API target_devicehint(3)

target_devicehint - Change connection- and device- use for a frameserver connection

nil
target_devicehint( vid:dsrv, number:device )
target_devicehint( vid:fsrv, string:target )
target_devicehint( vid:fsrv, string:target, bool:force(=false) )

This function serves several uses. The first use case is to forward a device handle to an accelerated client. This will happen if the device argument is provided and matches a valid card identifier. If an invalid identifier is provided, the call will only be interpreted as a mode hint. The mode argument can also be specified as device-use hint. Previously, this has been used to indicate of the client should produce a buffer for direct output on the device in question, but this is now done heuristically as part of map_video_display calls. The valid values now are DEVICE_INDIRECT for composed rendering, and DEVICE_LOST to indicate that the currently used GPU should be dropped and, if possible, revert to software- defined graphics. The other uses are with a string target. This is used to indicate a connection point to another arcan-shmif capable server. The default is to mark this as a hint, 'in the event of the main connection being lost, please go here'. If the force argument is also set, the connection may be forcibly severed to make the client switch to the specified connection point. The target string is assumed to match the valid rules for a connection point, but if the association is not forced, an empty string is also valid and will be interpreted as disabling a previously set alternate connection. If the forced target migration mode is used on a frameserver launched in an authoritative mode via define_avfeed or similar functions, the process tracking will be disabled and the kill 'guarantee' on delete_image will be lost.

function target_devicehint0()
      target_alloc("devicehint", function(source, status)
            if (status.kind == "connected") then
                  target_devicehint(source, "devicehint", true); -- send fallback path
                  target_devicehint(source, 0); -- send rendernode
            end
      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.