On Tue, 3 Apr 2012 12:01:47 -0400, Micheal Butz <[email protected]> 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 X71 > > 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 [email protected] with the message: INFO IBM-MAIN

