Module: Net

Defined in:
lib/net/nntp/client.rb,
lib/net/nntp/request.rb,
lib/net/nntp/version.rb,
lib/net/nntp/article.rb,
lib/net/nntp/response.rb,
lib/net/nntp/response/parsers.rb,
lib/net/nntp/response/responses.rb

Defined Under Namespace

Modules: NNTP, NNTPBodyParser, NNTPDateResponseParser, NNTPGroupResponseParser, NNTPHeaderParser, NNTPStatResponseParser Classes: NNTPArticle, NNTPArticleResponse, NNTPBodyResponse, NNTPClient, NNTPDateResponse, NNTPGenericRequest, NNTPGroupResponse, NNTPHeadResponse, NNTPLastResponse, NNTPListGroupResponse, NNTPLongResponse, NNTPNextResponse, NNTPRequest, NNTPResponse, NNTPStatResponse

Constant Summary collapse

NNTPOKResponse =
Class.new(NNTPResponse)
NNTPErrorResponse =
Class.new(NNTPResponse)
NNTPQuitResponse =
Class.new(NNTPOKResponse)
NNTPGreetingResponse =
Class.new(NNTPOKResponse)
NNTPHelpResponse =
Class.new(NNTPLongResponse)
NNTPCapabilitiesResponse =
Class.new(NNTPLongResponse)
NNTPPostingAllowed =

200

Class.new(NNTPOKResponse)
NNTPPostingProhibited =

201

Class.new(NNTPOKResponse)
NNTPArticleReceived =

235, 240

Class.new(NNTPOKResponse)
NNTPAuthenticationAccepted =

281

Class.new(NNTPOKResponse)
NNTPSendArticle =

324

Class.new(NNTPOKResponse)
NNTPPasswordRequired =

381

Class.new(NNTPOKResponse)
NNTPServiceTemporarilyUnavailableError =

400

Class.new(NNTPErrorResponse)
NNTPInvalidNewsgroupError =

411

Class.new(NNTPErrorResponse)
NNTPNoNewsgroupSelectedError =

412

Class.new(NNTPErrorResponse)
NNTPInvalidArticleNumberError =

420

Class.new(NNTPErrorResponse)
NNTPNoArticleFoundError =

421, 422, 423, 430

Class.new(NNTPErrorResponse)
NNTPArticleNotWantedError =

435

Class.new(NNTPErrorResponse)
NNTPTransferFailedError =

436

Class.new(NNTPErrorResponse)
NNTPTransferNotPossibleError =

436

Class.new(NNTPErrorResponse)
NNTPTransferRejectedError =

437

Class.new(NNTPErrorResponse)
NNTPPostingNotPermittedError =

440

Class.new(NNTPErrorResponse)
NNTPPostingFailedError =

441

Class.new(NNTPErrorResponse)
NNTPCommandIssuedOutOfSequenceError =

482 (RFC4643)

Class.new(NNTPErrorResponse)
NNTPStrongerAuthenticationRequiredError =

483 (RFC4643)

Class.new(NNTPErrorResponse)
NNTPServicePermenentlyUnavailableError =

502

Class.new(NNTPErrorResponse)
NNTPCommandUnavailableError =

502 (RFC4643)

Class.new(NNTPErrorResponse)
NNTP_RESPONSES =
{
  #(0..501) => NNTPResponse,
  215 => NNTPLongResponse,
  220 => NNTPLongResponse,
  221 => NNTPLongResponse,
  222 => NNTPLongResponse,
  224 => NNTPLongResponse,
  225 => NNTPLongResponse,
  230 => NNTPLongResponse,
  231 => NNTPLongResponse,
  281 => NNTPAuthenticationAccepted,
  381 => NNTPPasswordRequired,

  400 => NNTPServiceTemporarilyUnavailableError,
  411 => NNTPInvalidNewsgroupError,
  412 => NNTPNoNewsgroupSelectedError,
  420 => NNTPInvalidArticleNumberError,
  421 => NNTPNoArticleFoundError,
  422 => NNTPNoArticleFoundError,
  423 => NNTPNoArticleFoundError,
  430 => NNTPNoArticleFoundError,

  502 => NNTPServicePermenentlyUnavailableError,
}