Oma_Ot_Reader_Detach()

Abstract

Detaches from an OT reader.

Syntax

Oma_Ot_Reader_Detach (ot_reader_ptr)
Argument Type Description
ot_reader_ptr OmaT_Ot_Reader * OT file reader to be detached.

Return Type

PrgT_Compcode

PrgC_Compcode_Failure if the reader is not defined; PrgC_Compcode_Success otherwise.

oma_ot.h

Details

Use this function to detach an OT reader from its file when you are not actively reading data, but want to keep a reference to the reader. If the file was attached, the attach count is decremented. The file will be closed when the attach count becomes zero. However, the OT reader will reopen it automatically as needed if you read more data in the future. Detaching the OT reader from its file reduces the probability that the computer will run out of descriptors.

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com