
int send_message(string message)
int send_message(int code)
The function will return 0 if there is room for more messages, and 1 if not. If it returns 1, the driver will call message_done() in this object when all messages have been sent; if this object calls send_message() again before message_done() has been called, the remainder of the previous message will be discarded.
Calling send_message(-1) will return 0 if all messages have been sent, and 1 if not. If it returns 1, the driver will call message_done() in this object when all messages have been sent.
Destructing a connection object before all messages have been sent may cause the messages to be lost.
HTMLised 1998 Greg Lewis (glewis@maths.adelaide.edu.au)