我想将此代码更新为swift 4:
rc = select(socket_fd + 1, readfd, writefd, NULL, &timeout);
return rc;
}
Run Code Online (Sandbox Code Playgroud)
但我得到两个错误:
必须在模块'Darwin.POSIX.sys.time'中导入'select'
声明才能满足需要C99中函数'select'的隐式声明无效
我怎么能解决这个问题?
| 归档时间: |
|
| 查看次数: |
688 次 |
| 最近记录: |