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
.BSNE_SUCCESS.
.BSXE_SUCCESS.
In fail case other code error should be returned. It's a good practice to return
.BSNE_EPERM
.BSXE_EPERM
if username and password mismatch.
.SHRETURNVALUE
None.
@ -38,15 +38,15 @@ This example shows the code prototype for the simple username and password check
.RS
.nf
.ift.ftCW
int logincheck(conn_t *co)
int logincheck(sxlink_t *co)
{
perm_ctx_t *ctx = connection_getpctx(co);
sxsession_ctx_t *ctx = sxlink_getpctx(co);
char *login = ctx->login;
char *password = ctx->password;
/* do checks ... */
/* your fail case */return SNE_EPERM;
return SNE_SUCCESS; /* all is fine */
return SXE_SUCCESS; /* all is fine */
}
.SHAPPLICATIONUSAGE
This function should be used on the master service, it will not be called on the client application anyway.
@ -61,11 +61,11 @@ None.
,
.BIsxhub_set_sslvalidate(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.
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
.BSNE_SUCCESS.
.BSXE_SUCCESS.
In fail case other code error should be returned. It's a good practice to return
.BSNE_IGNORED
.BSXE_IGNORED
if your application doesn't support protocol channels or outdated.
.br
SXMP will push channel type id in
@ -45,11 +45,11 @@ This example shows the code prototype of such function: