[please don't cc me the messages sent to the list, thanks!] On Thu, 17 Oct 2002 16:11:37 -0400 (EDT) Ron Alford <[EMAIL PROTECTED]> wrote:
RA> Naievely, I need two function calls to interface: RA> 1) sendMail - Takes a MIME encoded message in string form, it's length (or RA> I could do a strlen(), and a list of addresses. I'm afraid it doesn't work like this: the transport layer (in c-client sense) doesn't know anything about the addresses. You really should look at c-client code as everything is there and I risk to confuse you more than help. RA> asychronously manage the serial port and pactor. Synchronous operation RA> would leave the system a bit too unresponsive (at 200 baud, simplex RA> communication, and difficult switching, the pactor can take up to a minute RA> to send even a small amount of text). Mahogany is going to become MT in the future and even though it won't happen in near future it's still probably better to wait for this happen rather than doing anything specific for your case -- even communications over TCP/IP network can take a long time, so the only real solution is to not wait for them. C-client doesn't have any support for async operations and so doing anything other at its level is going to be very difficult. RA> 2) readMail - Takes roughly zero inputs. Returns a MIME encoded message RA> in string form. Again, this is not the right level of abstraction: you should instead implement a function for reading a line of input. Regards, VZ ------------------------------------------------------- This sf.net email is sponsored by: viaVerio will pay you up to $1,000 for every account that you consolidate with us. http://ad.doubleclick.net/clk;4749864;7604308;v? http://www.viaverio.com/consolidator/osdn.cfm _______________________________________________ Mahogany-Developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mahogany-developers