Description | Hierarchy | Fields | Methods | Properties |
type TNNTPSend = class(TSynaClient)
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!
![]() |
constructor Create; |
![]() |
destructor Destroy; override; |
![]() |
function DoCommand(const Command: string): boolean; |
![]() |
function DoCommandRead(const Command: string): boolean; |
![]() |
function DoCommandWrite(const Command: string): boolean; |
![]() |
function FindCap(const Value: string): string; |
![]() |
function GetArticle(const Value: string): Boolean; |
![]() |
function GetBody(const Value: string): Boolean; |
![]() |
function GetHead(const Value: string): Boolean; |
![]() |
function GetStat(const Value: string): Boolean; |
![]() |
function GotoLast: Boolean; |
![]() |
function GotoNext: Boolean; |
![]() |
function IHave(const MessID: string): Boolean; |
![]() |
function ListExtensions: Boolean; |
![]() |
function ListGroups: Boolean; |
![]() |
function ListNewGroups(Since: TDateTime): Boolean; |
![]() |
function Login: Boolean; |
![]() |
function Logout: Boolean; |
![]() |
function NewArticles(const Group: string; Since: TDateTime): Boolean; |
![]() |
function PostArticle: Boolean; |
![]() |
function SelectGroup(const Value: string): Boolean; |
![]() |
function StartTLS: Boolean; |
![]() |
function SwitchToSlave: Boolean; |
![]() |
function Xover(xoStart, xoEnd: string): boolean; |
![]() |
constructor Create; |
![]() |
destructor Destroy; override; |
![]() |
function DoCommand(const Command: string): boolean; |
By this you can call any NNTP command.
![]() |
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.
![]() |
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.
![]() |
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.
![]() |
function GetArticle(const Value: string): Boolean; |
Download full message to Data property. Value can be number of message or message-id (in brackets).
![]() |
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).
![]() |
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).
![]() |
function GetStat(const Value: string): Boolean; |
Get message status. Value can be number of message or message-id (in brackets).
![]() |
function GotoLast: Boolean; |
Move message pointer to last item in group.
![]() |
function GotoNext: Boolean; |
Move message pointer to next item in group.
![]() |
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.
![]() |
function ListExtensions: Boolean; |
Try get list of server extensions. List is returned in Data property.
![]() |
function ListGroups: Boolean; |
Download to Data property list of all groups on NNTP server.
![]() |
function ListNewGroups(Since: TDateTime): Boolean; |
Download to Data property list of all groups created after given time.
![]() |
function Login: Boolean; |
Connects to NNTP server and begin session.
![]() |
function Logout: Boolean; |
Logout from NNTP server and terminate session.
![]() |
function NewArticles(const Group: string; Since: TDateTime): Boolean; |
Download to Data property list of message-ids in given group since given time.
![]() |
function PostArticle: Boolean; |
Upload new article to server. (for new messages by you)
![]() |
function SelectGroup(const Value: string): Boolean; |
Select given group.
![]() |
function StartTLS: Boolean; |
Call STARTTLS command for upgrade connection to SSL/TLS mode.
![]() |
function SwitchToSlave: Boolean; |
Tells to remote NNTP server 'I am not NNTP client, but I am another NNTP server'.
![]() |
function Xover(xoStart, xoEnd: string): boolean; |
Call NNTP XOVER command.
![]() |
property AutoTLS: Boolean; |
![]() |
property Data: TStringList; |
![]() |
property FullSSL: Boolean; |
![]() |
property ResultCode: Integer; |
![]() |
property ResultString: string; |
![]() |
property Sock: TTCPBlockSocket; |
![]() |
property AutoTLS: Boolean; |
If is set to True
, then upgrade to SSL/TLS mode after login if remote
server support it.
![]() |
property Data: TStringList; |
Readed data. (message, etc.)
![]() |
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!
![]() |
property ResultCode: Integer; |
Result code number of last operation.
![]() |
property ResultString: string; |
String description of last result code from NNTP server.
![]() |
property Sock: TTCPBlockSocket; |
Socket object used for TCP/IP operation. Good for seting OnStatus hook, etc.