[futurebasic] Re: [FB] TCP State...more

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 1999 : Group Archive : Group : All Groups

From: Sean -G3- <mclaughlin@...>
Date: Mon, 28 Jun 99 14:54:39 -0400
It turns out that gTCPcon is _not_ a pointer to the TCP stream. 
gTCPcon.TCPCStream& is. For all who need to find the status of their TCP 
connection, and alert the user of problems, use this code:

      theStatus = FN TCPConnectionStatus%(gTCPcon.TCPCStream&)
      LONG IF theStatus <> 8
        gExchangeStep = _closeTCPconnection
      END IF

Thanks for all your help, Greg! After looking into the format of 
TCPStatus for awhile, I decided that it was formatted correctly in the 
TCP Demo package. Which led me to look (for the third time) at how I was 
calling it. The globals file showed the real format of gTCPcon.