由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - [转载] why need dup?
相关主题
什么命令可以查看sockets端口的占用情况?(null)thx[转载] using ssh in tcsh script
Re: how to close port/socket from parent process?help!!!!!!!!!link between file descriptor & pointer?
simple simple question[转载] windows C++ -> Unix C++
Question on file descriptor请问: RPM是什么东东?
a difficult questionSocker Release.
file descriptor[转载] socket 急救
A question about thread of unix[转载] how to unbind a socket?
fileIDdynamic assigned port number for UDP socket, need help!
相关话题的讨论汇总
话题: dup话题: descriptor话题: socket话题: copy话题: file
进入Unix版参与讨论
1 (共1页)
f********r
发帖数: 16
1
【 以下文字转载自 Linux 讨论区 】
【 原文由 flyinghair 所发表 】
in some software, when accept a connection and be ready to
read from or write to this socket, it will make a copy of
the file descriptor of this socket by dup(). Then this
copy will be used instead of the real( original) file descriptor.
What is the intention of this?
Sounds useless.
1 (共1页)
进入Unix版参与讨论
相关主题
dynamic assigned port number for UDP socket, need help!a difficult question
a socket questionfile descriptor
请教高手:如何检查Socket的另一端已经被异常终A question about thread of unix
问一个通过socket 获得request source IP的问题fileID
什么命令可以查看sockets端口的占用情况?(null)thx[转载] using ssh in tcsh script
Re: how to close port/socket from parent process?help!!!!!!!!!link between file descriptor & pointer?
simple simple question[转载] windows C++ -> Unix C++
Question on file descriptor请问: RPM是什么东东?
相关话题的讨论汇总
话题: dup话题: descriptor话题: socket话题: copy话题: file