How do you pass the socket number between the address spaces ? It might help if you posted some code fragments
Rob Scott Rocket Software, Inc 275 Grove Street Newton, MA 02466 617-614-2305 [EMAIL PROTECTED] http://www.rs.com/portfolio/mxi/ -----Original Message----- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Giovanni L Bozzetti Sent: 15 June 2006 14:26 To: [email protected] Subject: Re: Writing a Listener and receive the takesocket in other address space Rob, I use exactly you describe and INITAPI is exactly you describe also. Now I am receing EBADF in takesocket, why??? Giovanni Bozzetti System Programmer ----- Original Message ----- From: "Rob Scott" <[EMAIL PROTECTED]> Newsgroups: bit.listserv.ibm-main To: <[email protected]> Sent: Thursday, June 15, 2006 10:11 AM Subject: Re: Writing a Listener and receive the takesocket in other address space > Giovanni, > > If LSTWORK is going to perform the TAKESOCKET, then "LSTWORK " must be > specified as the NAME value in the CLIENT structure for the GIVESOCKET > call in LSTSERVE. The way you have it currently assumes that the > TAKESOCKET is going to be performed by a subtask within the LSTSERVE > address space.... > > From the information you have provided, please also check that the > following is true : > > (o) On the INITAPI call in LSTSERVE, you have assigned a SUBTASK value > of "SRVR0001" > (o) On the INITAPI call in LSTWORK, you have assigned a SUBTASK value > of "TASK0001" > > > > Rob Scott > Rocket Software, Inc > 275 Grove Street > Newton, MA 02466 > 617-614-2305 > [EMAIL PROTECTED] > http://www.rs.com/portfolio/mxi/ ---------------------------------------------------------------------- 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

