|
NAMEtarget_alloc - Bind an external connection point or force-push a subsegmentSYNOPSISvid:new_vid, aid:new_aid, int:new_cookietarget_alloc( string:cpoint, function:callback ) target_alloc( string:cpoint, string:passkey, function:callback ) target_alloc( string:cpoint, string:passkey, int:w, int:h, function:callback ) target_alloc( string:cpoint, int:w, int:h, function:callback ) target_alloc( vid:fsrv ) target_alloc( vid:fsrv, function:callback ) target_alloc( vid:fsrv, int:w, int:h, function:callback ) target_alloc( vid:fsrv, function:callback, string:type ) target_alloc( vid:fsrv, function:callback, number:tag ) target_alloc( vid:fsrv, int:w, int:h, function:callback, string:type ) target_alloc( vid:fsrv, int:w, int:h, function:callback, string:type, bool:forced ) DESCRIPTIONThis functions controls server-side initiated allocation of segments or connection points. If the initial argument is of the cpoint form, the allocation will be a named connection point to which a client can connect. If the initial argument is of the fsrv form, a subsegment will be allocated and pushed to the client. This form is more specialised and intended as a server-side means of requesting and probing for client- side support for alternate views of whatever the fsrv connection current presents. This can be further specified by providing a type (debug, accessibility) and if a backend implementation should be forced or not (default=false). The form and use for callback is the same as in launch_target , please refer to that function for detailed documentation. The optional passkey form is an aditional authentication string that the connecting client is expected to be able to authenticate against in a platform defined function, typically as a simple string comparison or challenge-response and is not intended as a strong means of authentication. For such cases, the launch_target mechanism combined with the target/configuration database is preferred, as only the connection itself will be authenticated, the contents can still be subject to interception and tampering by a local attacker.NOTES
EXAMPLEfunction target_alloc0() local chain_call = function() target_alloc("nonauth", function(source, status) print(source, status.kind); if (status.kind == "connected") then chain_call(); end end); end end MISUSEfunction target_alloc0() local a = fill_surface(32, 32, 255, 0, 0, 0); target_alloc(a, function(source, status) end); end MISUSEfunction target_alloc1() vid = net_listen(); target_alloc(vid, target_alloc); end SEE ALSO:define_recordtarget(3) accept_target(3)
Visit the GSP FreeBSD Man Page Interface. |