PEAR Manual
Prev |  | Next

# Net_NNTP::isConnected()

Net_NNTP::isConnected() -- check connection status

## Synopsis

    require_once 'Net/NNTP.php';

``boolean Net_NNTP::isConnected` ()`

## Description

Returns the status of the connection

## Return value

`boolean` - `TRUE`, if connected

## Note

This function can not be called statically.

## Example

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!"
            ...
        }
    }

Prev | Home | Next
Net_NNTP::getOverviewFormat() | Up | Net_NNTP::last()