« Return to Thread: [proposal] connection veto callback

[proposal] connection veto callback

by torbenh :: Rate this Message:

Reply to Author | View in Thread


nedko and me came to the conclusion, that there are several reasons, why
applications should be forbidden to make some connections.

- lash session loading.
- connection ACLs
- application is dumb.

in order to not clutter jack code, with several ideas of how to
configure ACL or whatever, the solution seems to b a callback
clients can register.

bool
veto_connection( char *client_requesting_connection, char *src_port, char *dst_port )

control apps can register, and before actual connection is made, the
callbacks are executed in the control apps which register.

results are ORed and if its TRUE, then the connection is NOT made.
i prefer the result of jack_connect to be SUCESS in this case, because
dumb apps just close their jack client in case of connect failure.

but this is easy to make configureable. i would like to not have an enum
in the signature of the callback, because it makes the semantics much
more complex. iE one control app says FAIL, the other says
DONT_CONNECT_BUT_SUCCED... what to tell the app now ?

of course care must be taken, about timeouts and stuff. but i think we
have code for this already.


--
torben Hohn
http://galan.sourceforge.net -- The graphical Audio language
_______________________________________________
Jack-Devel mailing list
Jack-Devel@...
http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org

 « Return to Thread: [proposal] connection veto callback