[JDEV] urgent: Max. Message size ???
chandan sonaye
chandans at mahindrabt.com
Tue Mar 7 03:13:48 CST 2000
Hi all,
I am working in a Internet-based project. In the project, we are
developing an Instant Messaging client using Jabber Server in Visual
C++. I am using COM object (JabberCOM32) which is available at jabber
web site.
My jabber client can send and receive messages. But it can not receive
messages which are larger than some fixed size(4kb). When client
receives any message greater than this limit, it can not handle the
message.
The problem is as below:
In JabberCOM object, there are events like OnXml() and OnMessage().
In case of small messages(messages smaller than 4k), first OnXml() event
fires and then OnMessage() event fires.
In OnMessage(), i parse message and take appropriate action.
But in case of larger messages (messages greater than 4k), only OnXml()
event fires. In OnXml(), whole message doesn't come. Only some part of
message comes in OnXml(). In this case, OnMessage() event does not fire.
And then my application crashes.
Why is the limit for message size? Is buffer size(4k) determined at
jabber server?
In any case, How can i handle these larger messages?
Please give some guidelines to solve above problem.
Thank you
chandan
More information about the JDev
mailing list