Topic Path: Symbol Reference > Classes > TIdNNTP Class > TIdNNTP Methods > TakeThis Method
ContentsIndexHome
PreviousUpNext
TIdNNTP.TakeThis Method

Performs non-negotiated article transmissions.

function TakeThis(
    AMsgID: string; 
    AMsg: TIdStream
): string;
Parameters 
Description 
AMsgID 
ASCII contents of the message(s) to send.
 
AMsg 
Stream containing the NNTP news article content. 

String - Textual response from the NNTP server.

TakeThis is a string function used to perform non-negotiated NNTP article transmission for a stream containing the headers and body of a news article. TakeThis is similar to IHAVE, except that no server response is expected after article transmission. 

AMsgID contains the message identifer for the news article to be transmitted. 

AMsg is a stream containing the entire contents of the news article including message headers and body. 

TakeThis calls SendCmd using the value in AMsgID to begin streaming article transmission. TakeThis writes the message contents in AMsg to the server using the Write method in the IOHandler followed by the terminating CRLF.CRLF character sequence.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.