What is the call for checking the State of a Connection and What are the Results of the that Connection.

I need to know if its open or closed