 |
|
 |
|
|
 |
Transfering file descriptors between processes... |
 |
 |
|
|
08-18-04 10:57 PM
Suppose you have a process, A, with a file descriptor (a socket, in my
case) and you want process B to have the file descriptor instead. Is there
any way of transfering the file descriptor from one process into another?
Thanks!
[ Post a follow-up to this message ]
|
|
|
 |
|
|
|
 |
Re: Transfering file descriptors between processes... |
 |
 |
|
|
08-18-04 10:57 PM
"Anonymous" <ihatespam@nowhere.com> writes:
> Suppose you have a process, A, with a file descriptor (a socket, in my
> case) and you want process B to have the file descriptor instead. Is ther
e
> any way of transfering the file descriptor from one process into another?
Yes. Read all about it in Stevens books.
Dragan
--
Dragan Cvetkovic,
To be or not to be is true. G. Boole No it isn't. L. E. J. Brouwer
!!! Sender/From address is bogus. Use reply-to one !!!
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: Transfering file descriptors between processes... |
 |
 |
|
|
08-19-04 01:48 AM
On Wed, 18 Aug 2004, Dragan Cvetkovic wrote:
> Yes. Read all about it in Stevens books.
... And Solaris Systems Prorgamming (by yours truely)!
--
Rich Teer, SCNA, SCSA, author of "Solaris Systems Programming",
publishing in August 2004.
President,
Rite Online Inc.
Voice: +1 (250) 979-1638
URL: http://www.rite-group.com/rich
[ Post a follow-up to this message ]
|
|
|
 |
|
|
|
 |
Re: Transfering file descriptors between processes... |
 |
 |
|
|
08-19-04 07:50 AM
On Thu, 19 Aug 2004 01:05:52 GMT, Rich Teer <rich.teer@rite-group.com>
wrote:
>On Wed, 18 Aug 2004, Dragan Cvetkovic wrote:
>
>
>... And Solaris Systems Prorgamming (by yours truely)!
Note also that there are variations in the details across
implementations. What system(s) do you want to do this on?
Cheers,
Michael
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: Transfering file descriptors between processes... |
 |
 |
|
|
08-19-04 12:48 PM
Michael Kerrisk <michael.kerrisk.at.gmx.net@nospam.com> writes:
> On Thu, 19 Aug 2004 01:05:52 GMT, Rich Teer <rich.teer@rite-group.com>
> wrote:
>
>
> Note also that there are variations in the details across
> implementations. What system(s) do you want to do this on?
Probably Windows, according to OP's headers.
Rich, Amazon.ca says your book will be available 28/8/2004. Is that true?
Dragan
--
Dragan Cvetkovic,
To be or not to be is true. G. Boole No it isn't. L. E. J. Brouwer
!!! Sender/From address is bogus. Use reply-to one !!!
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: Transfering file descriptors between processes... |
 |
 |
|
|
08-19-04 10:58 PM
On Thu, 19 Aug 2004, Dragan Cvetkovic wrote:
> Rich, Amazon.ca says your book will be available 28/8/2004. Is that true?
Amazon.com says tomorrow (the 20th), so yes, it's true (mailing
delays notwithstanding). I hope to be getting a few advance
copies today or tomorrow.
I'll post a general announcement once Amazon.com says they
have some in stock.
--
Rich Teer, SCNA, SCSA, author of "Solaris Systems Programming",
publishing in August 2004.
President,
Rite Online Inc.
Voice: +1 (250) 979-1638
URL: http://www.rite-group.com/rich
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: Transfering file descriptors between processes... |
 |
 |
|
|
08-22-04 11:08 PM
"Michael Kerrisk" <michael.kerrisk.at.gmx.net@nospam.com> wrote in message
news:14e8i0pmqk2s94i3tmprqo2na263h2odou@
4ax.com...
> On Thu, 19 Aug 2004 01:05:52 GMT, Rich Teer <rich.teer@rite-group.com>
> wrote:
>
>
> Note also that there are variations in the details across
> implementations. What system(s) do you want to do this on?
Thank you for asking. I want to do this on Linux (2.4.21-4.0.1.ELsmp).
I'm also curious as to why Cvetkovic would want to plug someone else's
book instead of answering my (hopefully simple) question, but I digress...
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: Transfering file descriptors between processes... |
 |
 |
|
|
08-22-04 11:08 PM
"Dragan Cvetkovic" <me@privacy.net> wrote in message
news:lmd61nnt9g.fsf@privacy.net...
> Michael Kerrisk <michael.kerrisk.at.gmx.net@nospam.com> writes:
>
>
> Probably Windows, according to OP's headers.
Why would you assume this? Perhaps you can tell that I'm using an
MS-Windows news client but that doesn't mean I want to do this on that
platform. Indeed, "file descriptor" is a term absent from MS-Windows jargon
(instead, they refer to handles)...
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: Transfering file descriptors between processes... |
 |
 |
|
|
08-22-04 11:08 PM
"Anonymous" <ihatespam@nowhere.com> writes:
> "Michael Kerrisk" <michael.kerrisk.at.gmx.net@nospam.com> wrote in message
> news:14e8i0pmqk2s94i3tmprqo2na263h2odou@
4ax.com...
>
> Thank you for asking. I want to do this on Linux (2.4.21-4.0.1.ELsmp)
.
>
> I'm also curious as to why Cvetkovic would want to plug someone else's
> book instead of answering my (hopefully simple) question, but I digress...
Why am I recommending Stevens? Because his books about Unix and Network
programming are _the_ programming books for UNIX. I am certain the others
will agree with me.
Btw, the answer to that question is not that simple and depends also on the
platform.
Dragan
P.S. W. Richard Stevens is unfortunally dead, so he can benefit from my
"plug".
--
Dragan Cvetkovic,
To be or not to be is true. G. Boole No it isn't. L. E. J. Brouwer
!!! Sender/From address is bogus. Use reply-to one !!!
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: Transfering file descriptors between processes... |
 |
 |
|
|
08-22-04 11:08 PM
On Fri, 20 Aug 2004, Anonymous wrote:
> I'm also curious as to why Cvetkovic would want to plug someone else's
> book instead of answering my (hopefully simple) question, but I digress...
Dragan recommend Rich Stevens' books because they're among the best
for their subject matter. Also, a simple question does not always
generate a simple answer.
--
Rich Teer, SCNA, SCSA, author of "Solaris Systems Programming",
publishing in August 2004.
President,
Rite Online Inc.
Voice: +1 (250) 979-1638
URL: http://www.rite-group.com/rich
[ Post a follow-up to this message ]
|
|
|
 |
|
|
|
|
Sponsored Links |
 |
 |
|
|
 |
All times are GMT. The time now is 08:19 PM. |
 |
|
|
 |
|
 |
|
|
 |
|
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
|
|
|
|
Medical and Health forum | Computer Games Reviews | Graphics design forum
|
 |
|
 |
|