Is there anyway to tell that a message has been sent? We went to start a connection, send a message, wait for it to be sent and then close the connection.
when no error occured after send, and the xmpp server returns no xmpp error message then the message was sent and delivered.
If you send messages to federated xmpp users then the error response of the server can be delayed depending on the s2s timeout of your server.
This is possible when you send lots of messages because agsXMPP is using async socket functions only. Try to wait some seconds before you close the socket.
Its on our TODO list to add a synchronous send, or an async send with OnSent callback which would help in the case.
Software Developer
AG-Software
This post was edited on 2008-09-19, 01:03 by Alex.