Indy 9
TIdNNTPOnPost
See Also, Unit: IdNNTPServer
Event type signalled to process receipt of a new NNTP article.
TIdNNTPOnPost = procedure (AThread: TIdNNTPThread; var VPostOk: Boolean; var VErrorText: string) of object;
Unit
IdNNTPServer
Parameters
AThread
NNTP client thread for the event notification.
VErrorText
Optional error message from the event handler.
VPostOk
Indicates the Post was handled successfully.
Description
TIdNNTPOnPost is an event type signalled when an NNTP server needs to accept a new NNTP article in reponse to the NNTP POST command from a command event handler. TIdNNTPOnPost is the type used to represent the TIdNNTPServer.OnPost event handler. TIdNNTPOnPost allows the server implementation to capture the contents of the NNTP article from a client connection, perform verification and storage of the article, and indicate the success or failure of the process.

AThread is the TIdNNTPThread for the client generating the event notification.

VPostOk is a variable parameter that indicates the Post was handled successfully. The event handler can set VPostOk to False if posting is not allowed, or an NNTP protocol request is invalid.

VErrorText is an optional error message returned from the event handler when VPostOk is False.


Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.