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_updatehandler(3) Arcan Lua API target_updatehandler(3)

target_updatehandler - Change the active callback for a VID connected to a frameserver.

nil
target_updatehandler( vid, callback_function )

Every frameserver can have one active Lua function as a callback. This callback receives events related to the associated frameserver. In some cases, one might want to update or replace the function associated with a specific frameserver connected VID , e.g. when adopting as part of a system collapse or fallback script.

1
if callback_function is set to nil, frameserver related events will be silently dropped, except for special cases that are handled internally (see event_queuetransfer in engine/arcan_event.c).

function target_updatehandler0()
      a = launch_avfeed("", "avfeed", function(source, status)
            print("in first handler");
            target_updatehandler(source, function()
                  print("in second handler");
            end);
      end);
end

function target_updatehandler0()
      a = launch_avfeed("", "avfeed", function() end);
      target_updatehandler(a, target_updatehandler);
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.