摘要: 前几篇文章介绍了集中linux epoll的封装方式,本篇回归windows,介绍一个IOCP的封装。首先介绍要达到的目的:1) 导出基本接口,作为一个更高层跨平台网络库的基础组件2) 导出的接口用法与epoll版本大致相当,以方便日后的跨平台封装3) 默认的使用方式是单线程的,与epoll一致。下面是接口文件:/* Copyright (C) <2012> <huangweilook@21cn.com> This program is free software: you can redistribute it and/or modify it under the.. 阅读全文
posted @ 2012-05-04 15:59 sniperHW 阅读(2614) 评论(1) 推荐(0) 编辑