Method Protocols.NNTP.protocol()->failsafe_command()


Method failsafe_command

int failsafe_command(string cmd)

Description

send a command and require an ok response (200 series).

If the command failed with code 480 (Authentication required) and there is athentication information available, an attempt to authenticate will be performed, and the command retried.

Throws an error if the command result was not success (200-series).

Returns

Returns the result code.