ArgCV

  • Home
  • Code
    • Snippets
  • Life
  • About
  • Gallery
  • Guestbook
  • RSS

Transmission Control Protocol

The Transmission Control Protocol (TCP) is a core protocol of the Internet Protocol Suite. It originated in the initial network implementation in which it complemented the Internet Protocol (IP). Therefore, the entire suite is commonly referred to as TCP/IP.

Code

非阻塞的TCP服务设计

云风在12年写了段代码,讲的是socket server开启一个tcp服务,自己维护一个内存ringbuffer,然后利用epoll/kevent来poll request,自己维护循环收集请求.他的原始代码在此处.

最近抽空看了下代码,发现颇有可观之处,然后就改写下收集到我的工具库里面去.代码可以参考这里

(more…)

By Yu, 10 years2 years ago
  • Home
  • About
  • Guestbook
  • Privacy Policy
Hesmod | Developed by ThemeIsle, Revised by ArgCV