sumpter@OCFMAIL.OCF.LLNL.GOV (Robyne Sumpter) (04/04/91)
I apologize for continuously asking questions concerning the TNetAccept call but... Is there any possible way to determine how many connections TNetAccept actually accepts? When using the asynchronous TNetAccept call, it is required that the TNetAccept routine get called twice to accept one connection. When the routine is called the second time, it is possible that a second connection may be partially accepted. This clears the event from the listen socket and creates a new socket connection unknown to the caller of TNetAccept. Is there some way to find out that on the second call to TNetAccept a new (second) connection was partially accepted? In version 6.0 it appeared that the number of connections was returned. Now that we have moved to version 6.8 the return value is always 0. I would appreciate any information that is offered. Thanks in advance for your attention. Robyne Sumpter Lawrence Livermore Lab sumpter@ocfmail.ocf.llnl.gov
j.onions@xtel.co.uk (Julian Onions) (04/05/91)
No - it is not possible to tell this. To my knowledge it has never returned the number of calls partially accepted. It returns OK, NOTOK or the number of file descriptors that have events waiting on them. You cannot tell what TNetAccept is doing - how many calls it has partially accepted or what. The only thing you know is it returns a maximum of one new full connection per call. Julian.