Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gaojs/IOCPServer

Repository files navigation

IOCPServer


IOCP

A IOCP Server Class on Windows! 本类配套文章

一个基于完成端口网络服务类,自带缓存池和心跳包监测!

  • 这个类IOCP是本代码的核心类,用于说明WinSock服务器端编程模型中的 完成端口(IOCP)的使用方法,其中的IOContext类是封装了用于每一个重叠操作的参数, 具体说明了服务器端建立完成端口、建立工作者线程、投递Recv请求、投递Accept请求的方法, 所有的客户端连入的Socket都需要绑定到IOCP上,所有从客户端发来的数据,都会调用回调函数。
  • 用法:派生一个子类,重载回调函数
    • Revised by GaoJS at 2019/11

server

A TCP/IOCP Server with port:6000!


client

A TCP client(port:6000)!

About

A IOCP Server Class on Windows!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 97.5%
  • C 2.5%

AltStyle によって変換されたページ (->オリジナル) /