srv_setloginfo

Description

Return protocol format information from a remote server to a client.

Syntax

CS_RETCODE srv_setloginfo(spp, loginfop)
SRV_PROC         *spp;
CS_LOGINFO      *loginfop;

Parameters

spp

A pointer to an internal thread control structure.

loginfop

A pointer to a CS_LOGINFO structure that has been updated by ct_getloginfo.

Returns

Table 3-127:  Return values (srv_setloginfo)

Returns

To indicate

CS_SUCCEED

The routine completed successfully.

CS_FAIL

The routine failed.

Examples

Example 1

#include    <ospublic.h>

/*
** Local Prototype.
*/
CS_RETCODE      ex_srv_setloginfo     PROTOTYPE((
SRV_PROC        *spp,
CS_LOGINFO      *loginfop
));

/*
** EX_SRV_SETLOGINFO
**
**    Return protocol format information from a remote server to
 **    a client.
**    
**
** Arguments:
**
**    spp      A pointer to an internal thread control structure.
**    loginfop A pointer to a CS_LOGINFO structure that has been
 **             updated by ct_getloginfo.
**
** Returns
**
**    CS_SUCCEED  
**    CS_FAIL    
**
*/
CS_RETCODE      ex_srv_setloginfo(spp, loginfop)
SRV_PROC        *spp;
CS_LOGINFO      *loginfop;
{
      /* Check arguments. */
      if(spp == (SRV_PROC *)NULL)
      {
             return(CS_FAIL);
      }
      return(srv_setloginfo(spp,loginfop));
}

Usage

See also

srv_getloginfo, srv_recvpassthru, srv_sendpassthru