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
bond_target(3) FreeBSD Library Functions Manual bond_target(3)

bond_target - Setup a state transfer pipe between two targets.

nil
bond_target( vid:source, vid:dest )
bond_target( vid:source, vid:dest, bool:blob )
bond_target( vid:source, vid:dest, bool:blob, string:identifier )
bond_target( vid:source, vid:dest, bool:blob, string:id_source, string:id_dest )

This function is used to setup a state transfer stream between two targets. A pipe-pair is created with the write- end sent to source and the read- end sent to dest . By default, the transfer target type is marked as 'state', meaning that dest should replace its runtime state with that of source . If the blob argument is set to true, then the transfer type will be that of a opaque data blob, up to the dest to figure out what to do with. The identifier is a short string matching a previously announced extension or the reserved stdin, stdout or stderr names. If a single identifier is sent it will be used for both source and dest , otherwise id_source will be sent to source and id_dest sent to dest .

function bond_target0()
      local feed_1 =
      launch_avfeed("keep_alive:exec=ls /", "terminal",
            function(source, status)
            end
      )
      local feed_2 =
      launch_avfeed("keep_alive:exec=tee", "terminal",
            function(source, status)
            end
      )
      bond_target(feed_1, feed_2, true, "stdout", "stdin")
      local in = open_nonblock(feed_2, false)
end

June 2022 Arcan Lua API

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.