@ -14,12 +14,12 @@ This macro should be used if you want to setup callback function fired while pul
.br
This macro will set on
.Bc
connections link set callback
hub links set callback
.Bf
which is a function pointer of the type:
.br
.sp
.Btypedefvoid(*onpulse_t)(conn_t *,sexp_t*);
.Btypedefvoid(*onpulse_t)(sxlink_t *,sexp_t*);
.br
.sp
This function will be called if connection link will receive pulse message. It will pass a pointer to the connection where pulse message came and prepared S expression. Please note, prepared S expression structure will be destroyed after a function call.
.THSXHUB_SET_RPCVALIDATOR3"20 July 2015""SXMP""SXMP Library Manual"
.SHNAME
sxhub_set_rpcvalidator \- Set callback for the connection links based on the connections set, called to validate and setup RPC channels.
sxhub_set_rpcvalidator \- Set callback for the links created on the hub, called to validate and setup RPC channels.
.br
.SHSYNOPSIS
.B#include<sxmp/sxmp.h>
@ -10,7 +10,7 @@ sxhub_set_rpcvalidator \- Set callback for the connection links based on the con
.br
.sp
.SHDESCRIPTION
This macro should be used if you want to setup callback function fired while connection link initiating, this call shouldn't be ignored since it setups the RPC channels tree structure used within the connection link.
This macro should be used if you want to setup callback function fired while link initiating, this call shouldn't be ignored since it setups the RPC channels tree structure used within the connection link.
.br
This macro will set on
.Bc
@ -19,7 +19,7 @@ connections link set callback
which is a function pointer of the type:
.br
.sp
.Btypedefusrtc_t*(*rpcvalidate_t)(conn_t *);
.Btypedefusrtc_t*(*rpcvalidate_t)(sxlink_t *);
.br
.sp
It will pass a pointer to the connection link initiating now. Link isn't set fully at this moment and doesn't pass any messages and don't works with channel's operations. To pass initiation to the next stage this function should return
.THSXHUB_SET_SSLVALIDATE3"20 July 2015""SXMP""SXMP Library Manual"
.SHNAME
sxhub_set_sslvalidate \- Set callback for the connection links based on the connections set, called to validate x.509 certificate of peer by serial number.
sxhub_set_sslvalidate \- Set callback for the links created on the pointed hub, called to validate x.509 certificate of peer by serial number.
.br
.SHSYNOPSIS
.B#include<sxmp/sxmp.h>
@ -19,7 +19,7 @@ connections link set callback
which is a function pointer of the type:
.br
.sp
.Btypedefint(*validate_sslpem_t)(conn_t *);
.Btypedefint(*validate_sslpem_t)(sxlink_t *);
.br
.sp
It will pass a pointer to the connection link initiating now. Link isn't set fully at this moment and doesn't pass any messages and don't works with channel's operations. To pass initiation to the next stage this function should return
@ -36,9 +36,9 @@ This example shows the code prototype for the simple check:
.RS
.nf
.ift.ftCW
int validatex509(conn_t *co)
int validatex509(sxlink_t *co)
{
perm_ctx_t *ctx = connection_getpctx(co);
sxsession_ctx_t *ctx = sxlink_getpctx(co);
uint64_t x509serial = ctx->certid;
/* do checks ... */
@ -56,11 +56,11 @@ None.
,
.BIsxhub_set_ondestroy(3)
,
.BIconnection_getpctx(3)
.BIsxlink_getpctx(3)
,
.BIconnection_getpriv(3)
.BIsxlink_getpriv(3)
,
.BIconnection_setpriv(3)
.BIsxlink_setpriv(3)
.SHCOPYRIGHT
This is a proprietary software. See COPYING for further details.