⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ndmpcreateconnection.l

📁 网络数据管理协议的开发
💻 L
字号:
.\" Copyright (c) 1996,1997 PDC, Network Appliance. All Rights Reserved..\" $Id: ndmpCreateConnection.l,v 1.3 1997/02/01 09:50:31 tim Exp $'\"macro stdmacro.nr X.TH ndmpCreateConnection l "02 Jan 1997".SH NAMEndmpCreateConnection \- allocate and initialize an NDMP connection handle.SH SYNOPSIS.LP.nf.ft 3#include <ndmp_common.h>.ft.fi.LP.BI "int ndmpCreateConnection(NdmpMsgHandler*" " msgHandlerTbl" );.SH DESCRIPTION.B ndmpCreateConnection(\|)allocates and initializes an NDMP connection handle used forcreating and managing NDMP connections..IR msgHandlerTblspecifies an array of message handlers defined as follows:.RS.nf.ft 3typedef struct NdmpMsgHandler{    ndmp_message         message;    NdmpMsgHandlerFunc*  func;    bool_t               auth_required;    bool_t               (*xdr_request)();    int                  sizeof_request;    bool_t               (*xdr_reply)();    int                  sizeof_reply;} NdmpMsgHandler;.fi.ft 1.RE.LP.IR messageidentifies the NDMP message number..IR funcspecifies a handler function to be called when the request messageis received. The function has the following prototype:.RS.nf.ft 3void func(NdmpConnection  connection,          void*           request);.fi.ft 1.RE.LP.IR connectionis the NDMP connection structure returned from a call to.B ndmpCreateConnection..IR requestis a pointer to the body of the received request..IR auth_requiredindicates if the connection needs to be authorized prior to processingthe request. If .IR auth_requiredis TRUE and the request is received prior to the connection beingauthorized, an NDMP_NOT_AUTHORIZED_ERR is returned to the sender..IR xdr_requestspecifies the XDR function to be used for encoding/decoding therequest message..IR sizeof_requestis the size of the request message body..IR xdr_replyspecifies the XDR function to be used for encoding/decoding thereply message..IR sizeof_replyis the size of the reply message body..LPThe last element of the array must be a null entry..LP.B ndmpDestroyConnectionshould be called after the connection has been closed to deallocate resources..SH "RETURN VALUES"Upon successful completion,the NDMP connection handleis returned.Otherwise, a value of 0 is returned..SH "SEE ALSO".BR ndmpDestroyConnection (l)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -