If it's TCBs in the same address space, you don't have to go through any
official mechanism to transfer a socket. Simply having a subtask pick the
socket value up out of storage somewhere is fine.


David Logan
Manager of Product Development, Pitney Bowes Business Insight
http://centrus.com
W: (720) 564-3056
C: (303) 818-8222

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf
Of Patrick O'Keefe
Sent: Monday, December 01, 2008 14:17
To: [email protected]
Subject: Re: TCP/IP

On Sun, 30 Nov 2008 22:45:37 -0600, Paul Gilmartin 
<[EMAIL PROTECTED]> wrote:

>On Sun, 30 Nov 2008 19:34:41 -0600, John McKown wrote:
>>
>>Quite often, in the UNIX world, what is done is that the main process
>>(task) will do all of this. It will then fork() or spawn() another process
>>and give ownership of the socket created above to that process. 
>>...
>>
>Isn't the statement "give ownership of the socket" superfluous? I
>think a socket is just a variety of descriptor which fork()
>automatically replicated in the child process space.  What may be
>important is that the parent close() its instance of that descriptor
>in order that the client can detect the close() by the child.
>...

I know nothing about this vis-a-vis fork() and spawn(), but
givesocket() / takesocket() are (I assume) standard socket calls
that pass ownership of a connection.  In z/OS that passing can be
between address spaces.   Websphere passes connections from 
Server to Servant (or whatever they are called) address spaces.
I assume it can be done between TCBs in the same address space.

I certainly could be wrong, but I think the connection stays active
during this process.

Pat O'Keefe

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to