The Socket Address structure returned by ACCEPT contains the client port number of the connection you just accepted.
Chuck Arney illustro Systems International, LLC http://www.illustro.com Internet-enable your applications with z/Ware V2 Voice: 214-800-8900 X#5562 -- This e-mail is private and may be confidential and is for the intended recipient only. If misdirected, please notify us by telephone and confirm that it has been deleted from your system and any copies destroyed. If you are not the intended recipient you are strictly prohibited from using, printing, copying, distributing or disseminating this e-mail or any information contained in it. We use reasonable measures to virus scan all E-mails leaving illustro but no warranty is given that this E-mail and any attachments are virus free. You should ensure you have adequate measures in place for your own virus checking. > -----Original Message----- > From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On > Behalf Of Joe Reichman > Sent: Wednesday, November 04, 2009 5:41 PM > To: IBM-MAIN@bama.ua.edu > Subject: Re: Final Confusions on Concurrent Server > > Sorry if I wasn't clear When The SELECT macro/service senses a incoming > connection is there anyway that server can detect the socket that the > client > is trying to connect to > > Typically if I use the Wrong (for lack of a better term) socket (on the > client side) the Select macro (on the server) senses a new connection > but > the ACCEPT ECB (ECB to be posted by TCP/IP upon completion > > Of the ACCEPT) is never posted by TCP/IP > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html