Message-ID: <5N5EP6$Ui9@newsmth.net>
Subject: Re: XP 系统下 TCP Server 能够接受多少连接?
Date: Sat, 05 Apr 2014 12:10:31 +0000
From: zhz@newsmth.net-SPAM.no (夜阑听雨)
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!border1.nntp.dca.giganews.com!nntp.giganews.com!news.snarked.org!news.linkpendium.com!news.linkpendium.com!feeder.erje.net!eu.feeder.erje.net!news.byr.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/W/M.1396699830.80
X-Original-Bytes: 1005
Xref: 74.82.202.154 cn.bbs.comp.network.programming:13477

负责侦听的socket确实只占用一个端口,当连接到来时,我产生另外一个socket,然后
accept到新产生的socket上去负责具体数据传输,这种方案的话,是不是就超不过最大端
口数了?因为一个socket肯定要占用一个端口。

【 在 missdeer (卧薪尝胆的类库萤一) 的大作中提到: 】
: 作为server,只使用同一个端口,跟65535没关系

--

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