require_once 'Net/NNTP.php';
boolean Net_NNTP::isConnected ()
boolean Net_NNTP::isConnected
Returns the status of the connection
boolean - TRUE, if connected
This function can not be called statically.
Example 48-1. Using isConnected()
... if(PEAR::isError($response)) { // something goes wrong, check if we are still connected if($nntp->isConnected()) { echo "disconnected from newsserver!" ... } }