<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 07/09/2018 12:16 PM, Code Wiget
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:c13ab1dd-e8fb-41ed-bb10-e8dcc1fba3e6@Spark">
<title></title>
<div name="messageBodySection" style="font-size: 14px;
font-family: -apple-system, BlinkMacSystemFont, sans-serif;">
<div style="orphans: 2; widows: 2;">So, for the ssl options such
as:<br>
{reuse_session, fun()} {next_protocols_advertised, [binary()]}<br>
<br>
{user_lookup_fun, {fun(), term()}}, {psk_identity, string()},
{srp_identity, {string(), string()}}<br>
<br>
You have to manually set the configuration parameters, and
cannot set them in a configuration file?<br>
</div>
</div>
</blockquote>
<br>
I use {Module :: atom(), Function :: atom()} to represent a function
for configuration because the arity can be inferred from the
configuration value. I also use {{Module :: atom(), Function ::
atom()}} to allow an arity 0 function to return a function, to allow
a closure to be used. The source code I use for this is at
<a class="moz-txt-link-freetext" href="https://github.com/CloudI/CloudI/blob/95e76d30ff655562682132f9ec04b07075ce055d/src/lib/cloudi_core/src/cloudi_args_type.erl#L53-L136">https://github.com/CloudI/CloudI/blob/95e76d30ff655562682132f9ec04b07075ce055d/src/lib/cloudi_core/src/cloudi_args_type.erl#L53-L136</a><br>
<br>
Best Regards,<br>
Michael<br>
</body>
</html>