Skyter 神奇筆記 (築成)
Showing posts with label
Socket
.
Show all posts
Showing posts with label
Socket
.
Show all posts
Thursday, November 14, 2013
Non blocking connect
同事問我為何用 select () 去等 non blocking connect () 卻會馬上 return 但卻顯示 EINPROGRESS。
找了一陣子文章,似乎都指向一個答案,必須要使用 epoll 。
下面是相關的
程式碼範例
另外相關的文章也有討論到這個問題。
link1
link2
link3
link4
link5
Older Posts
Home
Subscribe to:
Posts (Atom)