Prg_Ipc_Wait_For_Port()

Abstract

Waits until either data is received from an IPC port or the wait times out.

Syntax

Prg_Ipc_Wait_For_Port (double timeout, PrgT_Ipc_Port_Handle port_handle);
Argument Type Description
port_handle PrgT_Ipc_Port_Handle PRG Ipc port which is waiting for data
timeout double timeout time (in seconds)

Return Type

PrgT_Ipc_Wait_Status

PrgC_Ipc_Wait_Timeout on timeout, or PrgC_Ipc_Wait_Packet_Received on data received

prg_ipc.h

Details

Block the execution of the calling program until one of the following events happens:

  • A given amount of time elapses with no data coming into the PRG IPC port, in which case program execution continues after this call.
  • There is incoming data on the PRG IPC port, in which case program execution continues after this call. The port's handler is called asynchronously (at a later time when program control returns to main event loop) to deal with incoming data.

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · 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