Note: calling this function more than once will not make it call destroy_func on any previously set opaque data
, you'll have to do it yourself.
Note: destroy_func, needs to free the memory associated to data, if necessary.
| this |
a Connection object |
| data |
a ServerProviderConnectionData, which can be extended as needed by the provider for which this is opened |
| destroy_func |
function to call when the connection closes and |