Message-ID: <5LlfR2$T02@newsmth.net>
Subject: Re: [问题]socket编程,关于I/O复用中select和poll
Date: Mon, 27 Jan 2014 02:40:18 +0000
From: abahai@newsmth.net-SPAM.no (abahai)
Path: 74.82.202.154!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-cn.bbs.comp.network.programming.20141003.mbox.gz!border1.nntp.dca3.giganews.com!backlog3.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news-in-01.newsfeed.easynews.com!easynews.com!easynews!news.glorb.com!news.neu.edu.cn!news.newsmth.net!NEWSMTH
Newsgroups: cn.bbs.comp.network.programming
Organization: 水木社区
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: NetPRG/T/M.1390790162.00
X-Received-Bytes: 1055
X-Original-Bytes: 1117
Xref: 74.82.202.154 cn.bbs.comp.network.programming:13396

我觉得这样的答案可以去apue上找到。计算机网络里面所有的都是有层次的,也就是没有耦合,只有数据通信。至于server client也是别人定出来的。什么select和epoll,kqueue和这些东西就更没有必然关系了。因为IO不只是指网络IO,磁盘等等也是的
【 在 AnneSun (AnneSun) 的大作中提到: 】
: 在socket编程中,针对I/O复用提供了两个函数select和poll。
: 想问一下,在实际使用中,哪种函数用的多一些呢?
: 可以混用吗?比如server端用poll,client端用select?若是不能的话,为什么呢?
: ...................

--

※ 来源:·水木社区 newsmth.net·[FROM: 183.61.117.*]