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

net_open - Make an outbound connection to a data source.

vid or BADID
net_open( str:host, function:handler(source:vid, strtbl:status) )

This creates an outbound connection to a network resource speaking the a12 protocol. If host starts with an @ sign and matches a known name in the keystore, the connection information and authentication credentials will be picked from there. The connection behaves just as if it had been initiated through launch_target or or target_alloc .

function net_open0()
      net_open("laptop",
      function(source, status)
            if status.kind == "segment_request" then
                  accept_target(0, 0,
                        function(source, status)
                              if status.kind == "resized" then
                                    show_image(source)
                                    resize_image(source, status.width, status.height)
                              end
                        end
                  )
            end
            if status.kind == "terminated" then
                  print("died", status.last_words)
                  delete_image(source)
                  return shutdown()
      end)
end

net_discover(3) launch_target(3)

June 2022 network

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.