Subject: BOSH through proxy server
I have a problem that the MatriX(.NET) cannot connect the BOSH Server through a proxy server from client program.
In case that the parameter of "Transport" is "Matrix.Net.Transport.BOSH", it seems to connect not the proxy server but BOSH Server directly.
We expect to connect the BOSH Server through the proxy server.
The sample code is attached as follows;
Is there any problems?
If you have some sample codes, could we get them please?
In case that the parameter of "Transport" is "Matrix.Net.Transport.BOSH", it seems to connect not the proxy server but BOSH Server directly.
We expect to connect the BOSH Server through the proxy server.
The sample code is attached as follows;
- this.xmppClient.SetUsername("UserName");
- this.xmppClient.SetXmppDomain("XX.XX.XX.XX");
- this.xmppClient.Password = "PasswordText";
- this.xmppClient.Hostname = "XX.XX.XX.XX";
- this.xmppClient.Transport = [color=blue]Matrix.Net.Transport.BOSH;[/color]
- this.xmppClient.Port = 7070;
- this.xmppClient.ProxyHostname = textProxyServer.Text;
- // proxy settings
- this.xmppClient.ProxyHostname = "proxy.server.address";
- this.xmppClient.ProxyPort = int.Parse("8080");
- this.xmppClient.ProxyUser = "ProxyUserName";
- this.xmppClient.ProxyPass = "ProxyPassword";
- this.xmppClient.ProxyType = Matrix.Net.Proxy.ProxyType.HttpTunnel;
- this.xmppClient.Status = "ready for chat";
- this.xmppClient.Show = Matrix.Xmpp.Show.chat;
- this.xmppClient.Open();
Is there any problems?
If you have some sample codes, could we get them please?