Subject: Reconnect.
Hello. When the program is running, may be lost internet connection.When the connection is resumed, I re-open the connection to the server. But getting a socket error.
When starting the program connected in such a way
When connectio lost
And when I again do connect
I get socket error.
What am I doing wrong?
Thank you.
When starting the program connected in such a way
- this.xmpp.Server = jidSender.Server;
- this.xmpp.Username = jidSender.User;
- this.xmpp.Password = Password;
- this.xmpp.UseCompression = true;
- this.xmpp.Resource = "plugin_mt";
- this.xmpp.EnableCapabilities = true;
- this.xmpp.ClientVersion = "1.0";
- this.xmpp.Capabilities.Node = "http://www.ag-software.net/miniclient/caps";
- this.xmpp.Open();
this.xmpp.Close();
And when I again do connect
- this.xmpp.Server = jidSender.Server;
- this.xmpp.Username = jidSender.User;
- this.xmpp.Password = Password;
- this.xmpp.UseCompression = true;
- this.xmpp.Resource = "plugin_mt";
- this.xmpp.EnableCapabilities = true;
- this.xmpp.ClientVersion = "1.0";
- this.xmpp.Capabilities.Node = "http://www.ag-software.net/miniclient/caps";
- this.xmpp.Open();
I get socket error.
What am I doing wrong?
Thank you.
This post was edited on 2013-03-06, 20:27 by Alex.