最后细化设计各功能模块,并通过定义数据结构与函数接口实现对等网络的即时通信系统目录服务。
Finally the detail design of modules and the implementation of directory service in P2P im System have been described by data structure and function interface.
清单 4 中所示的结构由 mimeokay 函数使用,用来实现以下用途:将全局字符串指针 fstr 设置为与文件扩展名 fext 相匹配的合适的 MIME 类型。
The structure in Listing 4 is used by the mimeokay function for one purpose: to set the global string pointer fstr to the appropriate MIME type string matching the file's extension: fext.
fitness函数与最初示例中的相似,但“奖赏”的结构有所不同,而且循环实际上也进行了简化。
The fitness function is similar to the one from the original example, but the reward structure is different and the loop is actually simplified.
应用推荐