Server Disconnected

I have a QNX TCP/IP client application that must detect if the server
closes its port. My app uses a timer proxy so that I can check the
status of the server at timed intervals. Which function of the TCP/IP
library would work best for getting the state or the port status of the

Thank you.

Dan Szymanski