Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Harshad #1
Member since Jun 2007 · 1 post · Location: Mumbai (India)
Group memberships: Members
Show profile · Link to this post
Subject: How to Disconnect XmppComponentConnection
Hi can any one help me? I'm getting problem in disconnecting XmppComponentConnection.

Problem is that, every thing is going great when I start an application for the first time which uses XmppComponentConnection, but on SocketExeption, I am reconnecting connection. Form here problem starts, Connection start dropping packets. It not gives me all route packets. suppose I send 9 messages to some one, I'm not getting all of that messages on component connection. I think it may be due to connection was not disconnected properly at SocketExeption.

So, can any one tell me, how can I disconnect or dispose Component connection...

Thanks in advance...........
Jabberer #2
Member since Feb 2006 · 249 posts
Group memberships: Members
Show profile · Link to this post
normally you disconnect the component with the Close function. But if the connection gets disconnected by socket errors calling the Close method makes no sense.

We made some improvements to the component code in the latest SVN code. Can you check if you use the latest code?

A component connection is using only one socket. If it's connected you should get all packets and not only some. Can you look in the Xml log if the packets are there and also use a socket sniffer to see if the server is sending them? Otherwise its a problem of your server.
Software Developer
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS