op_select()

注意: 需要 Shared Code 功能

摘要

等待一个或多个 socket 达到指定条件。

语法

op_select (nfds, sockets, timeout)

参数 类型 说明
nfds int 要检查的 socket 数量
sockets int * socket ID 数组
timeout struct timeval * 超时时长

返回类型

int

返回 0。

头文件

shared_code_support.h

详细说明

该函数会阻塞,直到收到数据包或超时结束。

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