Reading response after ADDMESSAGE

6 views
Skip to first unread message

Jan Hančič

unread,
Jun 11, 2009, 5:43:42 AM6/11/09
to meteorserver
Hi,

I'm just wondering if it's absolutely necessary to read the response
from meteor after issuing the ADDMESSAGE command?
I'm looking at the example here: http://meteorserver.org/examples/ and
I don't see any use for this. Please enlighten me :)

Jose Mico

unread,
Jun 11, 2009, 5:51:32 PM6/11/09
to meteorserver
No, is not absolutely necessary. But:

- If you just close the socket after adding the message, be careful to
wait until the socket write buffer is empty (or the message may be not
fully sent).

- If you do not close the socket, note that for any later command for
which you'd expect a response, you'll get first the buffered response
of previous ADDMSG command.

So, in my opinion, is just more sane to wait for the command response,
even if you then ignore it.

Jan Hančič

unread,
Jun 12, 2009, 3:58:20 AM6/12/09
to meteorserver
Ok thanks!

lp
Reply all
Reply to author
Forward
0 new messages