Hi, http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/f1a1d450/2.2.4?SH ELF=F1A1BK81&DT=20050715123233#FIGADDSPA
I am enclosing a link to picture of the logic flow form the Communcation Server bookshelf Re: about how to code a Concurrent Server I followed this basic flow The Client Was a Windows program When the Windows program tried to Connect to the MainFrame Started task The Select macro ( I am using the EZASMI macro interface) recognized the Connection I did a accept to get the "new" incoming Socket did a GiveSocket Posted the Subrask which did a TaskSocket subsequently this generated a exception to the Select macro after which I closed the Socket I thought that for this connection the main Task Bussiness with this connection was done Since I had closed the Socket However When the Windows Client did a Send the Select Macro Which is at the Top of the loop recognized this as the return code from the Select was not zero but 2 I just ignored this going back to Select macro Subsequently TCP/IP posts the ECB which the Read macro in the Subtask was waiting on and things work out fine My question is after I closed the Socket From the Main program (giving the Socket to the Subtask) Why does the Select in the Main Task recognize the Send From this connection returning a "2" in the RETCODE param ---------------------------------------------------------------------- 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

