Subject: AgsXMPP Http Proxy
Hi,
I needed configure a proxy in my agsxmpp conection. I looked a lot, but don't found a simple example where i could tell host, port, username and password.
My current connection it is:
Congratulations
Daniel Gielow Junior
I needed configure a proxy in my agsxmpp conection. I looked a lot, but don't found a simple example where i could tell host, port, username and password.
My current connection it is:
- static void Main(string[] args)
- {
- xmpp.Server = "domain";
- xmpp.ConnectServer = "xxx.xx.xxx.xxx";
- xmpp.Username = "user";
- xmpp.Password = "password";
- xmpp.AutoResolveConnectServer = false;
- xmpp.OnLogin += xmpp_OnLogin;
- xmpp.OnError += xmpp_OnError;
- xmpp.OnAuthError += xmpp_OnAuthError;
- xmpp.Open();
- lock (xmpp)
- {
- if (Monitor.Wait(xmpp, 400000))
- {
- Console.WriteLine("Connected. Authenticated: " + xmpp.Authenticated);
- }
- }
- }
- static void xmpp_OnLogin(object sender)
- {
- lock (sender)
- {
- Monitor.Pulse(sender);
- }
- }
Congratulations
Daniel Gielow Junior