Class TNNTPSend

DescriptionHierarchyFieldsMethodsProperties

Unit

nntpsend

Declaration

type TNNTPSend = class(TSynaClient)

Description

abstract(Implementation of Network News Transfer Protocol.

Note: Are you missing properties for setting Username and Password? Look to parent TSynaClient object!

Are you missing properties for specify server address and port? Look to parent TSynaClient too!

Hierarchy

TNNTPSend > TSynaClient > TObject

Methods

Overview

Public constructor Create;
Public destructor Destroy; override;
Public function DoCommand(const Command: string): boolean;
Public function DoCommandRead(const Command: string): boolean;
Public function DoCommandWrite(const Command: string): boolean;
Public function FindCap(const Value: string): string;
Public function GetArticle(const Value: string): Boolean;
Public function GetBody(const Value: string): Boolean;
Public function GetHead(const Value: string): Boolean;
Public function GetStat(const Value: string): Boolean;
Public function GotoLast: Boolean;
Public function GotoNext: Boolean;
Public function IHave(const MessID: string): Boolean;
Public function ListExtensions: Boolean;
Public function ListGroups: Boolean;
Public function ListNewGroups(Since: TDateTime): Boolean;
Public function Login: Boolean;
Public function Logout: Boolean;
Public function NewArticles(const Group: string; Since: TDateTime): Boolean;
Public function PostArticle: Boolean;
Public function SelectGroup(const Value: string): Boolean;
Public function StartTLS: Boolean;
Public function SwitchToSlave: Boolean;
Public function Xover(xoStart, xoEnd: string): boolean;

Description

Public constructor Create;

 

Public destructor Destroy; override;

 

Public function DoCommand(const Command: string): boolean;

By this you can call any NNTP command.

Public function DoCommandRead(const Command: string): boolean;

by this you can call any NNTP command. This variant is used for commands for download information from server.

Public function DoCommandWrite(const Command: string): boolean;

by this you can call any NNTP command. This variant is used for commands for upload information to server.

Public function FindCap(const Value: string): string;

Try to find given capability in extension list. This list is getted after successful login to NNTP server. If extension capability is not found, then return is empty string.

Public function GetArticle(const Value: string): Boolean;

Download full message to Data property. Value can be number of message or message-id (in brackets).

Public function GetBody(const Value: string): Boolean;

Download only body of message to Data property. Value can be number of message or message-id (in brackets).

Public function GetHead(const Value: string): Boolean;

Download only headers of message to Data property. Value can be number of message or message-id (in brackets).

Public function GetStat(const Value: string): Boolean;

Get message status. Value can be number of message or message-id (in brackets).

Public function GotoLast: Boolean;

Move message pointer to last item in group.

Public function GotoNext: Boolean;

Move message pointer to next item in group.

Public function IHave(const MessID: string): Boolean;

Tell to server 'I have mesage with given message-ID.' If server need this message, message is uploaded to server.

Public function ListExtensions: Boolean;

Try get list of server extensions. List is returned in Data property.

Public function ListGroups: Boolean;

Download to Data property list of all groups on NNTP server.

Public function ListNewGroups(Since: TDateTime): Boolean;

Download to Data property list of all groups created after given time.

Public function Login: Boolean;

Connects to NNTP server and begin session.

Public function Logout: Boolean;

Logout from NNTP server and terminate session.

Public function NewArticles(const Group: string; Since: TDateTime): Boolean;

Download to Data property list of message-ids in given group since given time.

Public function PostArticle: Boolean;

Upload new article to server. (for new messages by you)

Public function SelectGroup(const Value: string): Boolean;

Select given group.

Public function StartTLS: Boolean;

Call STARTTLS command for upgrade connection to SSL/TLS mode.

Public function SwitchToSlave: Boolean;

Tells to remote NNTP server 'I am not NNTP client, but I am another NNTP server'.

Public function Xover(xoStart, xoEnd: string): boolean;

Call NNTP XOVER command.

Properties

Overview

Published property AutoTLS: Boolean;
Published property Data: TStringList;
Published property FullSSL: Boolean;
Published property ResultCode: Integer;
Published property ResultString: string;
Published property Sock: TTCPBlockSocket;

Description

Published property AutoTLS: Boolean;

If is set to True, then upgrade to SSL/TLS mode after login if remote server support it.

Published property Data: TStringList;

Readed data. (message, etc.)

Published property FullSSL: Boolean;

SSL/TLS mode is used from first contact to server. Servers with full SSL/TLS mode usualy using non-standard TCP port!

Published property ResultCode: Integer;

Result code number of last operation.

Published property ResultString: string;

String description of last result code from NNTP server.

Published property Sock: TTCPBlockSocket;

Socket object used for TCP/IP operation. Good for seting OnStatus hook, etc.


Generated by PasDoc 0.8.8.2 on 2005-01-19 20:01:18