自主协议库编译通过
This commit is contained in:
75
mmslib/mvlu/s_fread.c
Normal file
75
mmslib/mvlu/s_fread.c
Normal file
@@ -0,0 +1,75 @@
|
||||
/************************************************************************/
|
||||
/* SISCO SOFTWARE MODULE HEADER *****************************************/
|
||||
/************************************************************************/
|
||||
/* (c) Copyright Systems Integration Specialists Company, Inc., */
|
||||
/* 1994 - 1996, All Rights Reserved */
|
||||
/* */
|
||||
/* MODULE NAME : s_fread.c */
|
||||
/* PRODUCT(S) : MMSEASE-LITE */
|
||||
/* */
|
||||
/* MODULE DESCRIPTION : */
|
||||
/* */
|
||||
/* GLOBAL FUNCTIONS DEFINED IN THIS MODULE : */
|
||||
/* _mvl_process_fread_ind */
|
||||
/* mplas_fread_resp */
|
||||
/* */
|
||||
/* MODIFICATION LOG : */
|
||||
/* Date Who Rev Comments */
|
||||
/* -------- --- ------ ------------------------------------------- */
|
||||
/* 04/09/07 MDE 11 Enhanced filtered logging */
|
||||
/* 03/11/04 GLB 10 Remove "thisFileName" */
|
||||
/* 09/21/01 JRB 09 Alloc global bufs only once at startup. */
|
||||
/* 01/21/00 MDE 08 Now use MEM_SMEM for dynamic memory */
|
||||
/* 09/13/99 MDE 07 Added SD_CONST modifiers */
|
||||
/* 04/01/99 MDE 06 Changes to decode buffer allocation scheme */
|
||||
/* 11/16/98 MDE 05 Renamed internal functions (prefix '_') */
|
||||
/* 09/21/98 MDE 04 Minor lint cleanup */
|
||||
/* 06/15/98 MDE 03 Changes to allow compile under C++ */
|
||||
/* 05/14/98 JRB 02 Use MVL_IND_PEND. Add mvlas resp function. */
|
||||
/* 09/10/97 MDE 01 MMS-LITE V4.0 Release */
|
||||
/************************************************************************/
|
||||
|
||||
#include "glbtypes.h"
|
||||
#include "sysincs.h"
|
||||
#include "mmsdefs.h"
|
||||
#include "mms_pfil.h"
|
||||
#include "mvl_defs.h"
|
||||
#include "mvl_log.h"
|
||||
|
||||
|
||||
/************************************************************************/
|
||||
/************************************************************************/
|
||||
/* _mvl_process_fread_ind */
|
||||
/* A file open indication has been received, process it and respond */
|
||||
/************************************************************************/
|
||||
|
||||
ST_VOID _mvl_process_fread_ind (MVL_IND_PEND *indCtrl)
|
||||
{
|
||||
MVLAS_FREAD_CTRL *freadCtrl;
|
||||
|
||||
freadCtrl = &indCtrl->u.fread;
|
||||
|
||||
freadCtrl->req_info = (FREAD_REQ_INFO *) indCtrl->event->u.mms.dec_rslt.data_ptr;
|
||||
|
||||
/* (Max file block size) = (Max PDU size) - 100 to allow for MMS headers.*/
|
||||
freadCtrl->max_size = indCtrl->event->net_info->max_pdu_size - 100;
|
||||
|
||||
u_mvl_fread_ind (indCtrl);
|
||||
}
|
||||
|
||||
/************************************************************************/
|
||||
/* mplas_fread_resp */
|
||||
/************************************************************************/
|
||||
ST_VOID mplas_fread_resp (MVL_IND_PEND *indCtrl)
|
||||
{
|
||||
ST_RET rc;
|
||||
|
||||
/* Build a File Read response */
|
||||
rc = mpl_fread_resp (indCtrl->event->u.mms.dec_rslt.id,
|
||||
indCtrl->u.fread.resp_info);
|
||||
if (rc == SD_SUCCESS)
|
||||
mpl_resp_log (indCtrl, indCtrl->u.fread.resp_info);
|
||||
|
||||
_mvl_send_resp_i (indCtrl, rc);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user