Regarding the Client id Structure is its value important or .... as long as The Clientid of the GiveSocket matches the takesocket I should be OK
-----Original Message----- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@bama.ua.edu] On Behalf Of Scott Ford Sent: Wednesday, April 04, 2012 12:06 PM To: IBM-MAIN@bama.ua.edu Subject: Re: tcp/ip EZASMI concurrent server problem GIVE/TAKESOCET Alan, I write sockets all the time the sys1.samplib examples are excellent and work with just a tiny bit of tweaking.. Hth Regards, Sent from my iPad Scott Ford Senior Systems Engineer www.identityforge.com On Apr 4, 2012, at 12:35 AM, Alan Altmark <alan_altm...@us.ibm.com> wrote: > On Tue, 3 Apr 2012 12:01:47 -0400, Micheal Butz <michealb...@optonline.net> > wrote: >> When I get incoming connection via SELECT/ACCEPT I move the low order ½ from >> retocde from the accept call which is the new socket I will be communicating >> to SERV_SOCK so far so good >> >> (it happens to be a 4). I then do a GIVESOCKET using the SERV_SOCK (4) >> getting a return code 0, >> >> I then POST the subtask to execute the TAKESOCKET using the SERV_SOCK were >> I get errno of X’71’ >> >> 113 EBADF TAKESOCKET the socket has already been >> taken >> >> Am I doing anything wrong in this scenario > > Did you remember to wait for the TAKESOCKET to complete before you CLOSE the > socket in the main task? And are you specifying the correct clientid > structure? I didn't see you passing any clientid information in your > parameter list. > > Alan Altmark > IBM > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@bama.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: INFO IBM-MAIN