The API changes should provide both source and binary (71) for programs written to the original API.That is,existing program bi

admin2015-05-21  28

问题     The API changes should provide both source and binary  (71) for programs written to the original API.That is,existing program binaries should continue to operate when run on a system supporting the new API.In addition,existing  (72) that are re-compiled and run on a system supporting the new API should continue to operate.Simply put,the API  (73) for multicast receivers that specify source filters should not break existing programs.The changes to the API should be as small as possible in order to simplify the task of converting existing   (74) receiver applications to use source filters.Applications should be able to detect when the new  (75) filter APIs are unavailable(e.g.,calls fail with the ENOTSUPP error)and react gracefully(e.g.,revert to old non-source—filter API or display a meaningful error message to the user).
     (75)

选项 A、resource
B、state
C、destination
D、source

答案D

解析 对于API的改变应该与用原来API编写的程序的源代码和二进制代码兼容。亦即,原有程序的二进制代码应该可以运行在支持新API的系统上。此外,现有的应用经过重新编译,也可以运行在支持新API的系统上。简言之,对于说明了源过滤的组播接收器,API的改变不能破坏现有的程序。API的改变应该尽量小,以便简化转换现有的使用源过滤的组播接收器应用的工作。当新的源过滤API不可用时,应用程序应该能够检测到(例如调用失败,出现ENOTSUPP错误),并且给出温和的反应(例如转向老的非源过滤API,或者向用户显示有用的错误信息)。
转载请注明原文地址:https://jikaoti.com/ti/4n67FFFM
0

最新回复(0)