> Would it be bad design if I add an async method "CalcMsgSize" to TSmtpCli

Good idea.
Could also be implemented as a simple event. If the event is assigned, the 
computation is done and then event handler is called with the computation 
result as argument.

> I also would like to trigger OnRequestDone with a new request type
> "smtpToFile" after method SentToFile is done.

OK.

-- 
francois.pie...@overbyte.be
http://www.overbyte.be

----- Original Message ----- 
From: "Arno Garrels" <arno.garr...@gmx.de>
To: "ICS support mailing" <twsocket@elists.org>
Sent: Sunday, January 18, 2009 5:42 PM
Subject: [twsocket] Obtaining the message size with TSmtpCli


> Hi All,
>
> Would it be bad design if I add an async method "CalcMsgSize" to TSmtpCli
> which would use a new request type "smtpCalcSize" and trigger 
> OnRequestDone
> when finished? CalcMsgSize would set a new public read/write property
> "MessageSize".
>
> I also would like to trigger OnRequestDone with a new request type
> "smtpToFile" after method SentToFile is done.
>
> What do you think?
>
> --
> Arno Garrels [TeamICS]
> http://www.overbyte.be/eng/overbyte/teamics.html
>
>
> -- 
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to