Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
ramtin #1
User title: RamTin
Member since Mar 2013 · 26 posts
Group memberships: Members
Show profile · Link to this post
Subject: Question : Login Id's with Proxy
Hi
C#
AgsXMPP.dll

this is my codes for log in id's :

  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Collections.ObjectModel;
  5. using System.Data;
  6. using System.Drawing;
  7. using System.Text;
  8. using System.Windows.Forms;
  9.  
  10. using System.IO;
  11.  
  12. using agsXMPP;
  13. using agsXMPP.Xml.Dom;
  14.  
  15. using System.Threading.Tasks;
  16.  
  17. namespace Check
  18. {
  19.     public partial class Check : MetroForm
  20.     {
  21.         public Check()
  22.         {
  23.             InitializeComponent();
  24.         }
  25.         Collection<XmppClientConnection> xmpp = new Collection<XmppClientConnection>();
  26.         public string[] R;
  27.         private int i;
  28.         public string[] ra;
  29.  
  30.  
  31.         private void buttonX1_Click(object sender, EventArgs e)
  32.         {
  33.                 try
  34.                 {
  35.                     R = txtid.Text.Split('#');
  36.                     for (i = 0; i < R.Length; i++)
  37.                     {
  38.                         XmppClientConnection x = new XmppClientConnection();
  39.                         xmpp.Add(x);
  40.                         xmpp[i] = new XmppClientConnection();
  41.                         xmpp[i].Server = "nimbuzz.com";
  42.                         xmpp[i].ConnectServer = "openfire.nimbuzz.com";
  43.                         xmpp[i].Open(R[i], txtpw.Text, "Learning AgsXMPP.dll " + DateTime.Now.Second + DateTime.Now.Minute);
  44.                         xmpp[i].OnLogin += new ObjectHandler(OnLogin);
  45.                     }
  46.                 }
  47.                 catch { }
  48.         }
  49.         private void OnLogin(object sender)
  50.         {
  51.             if (base.InvokeRequired)
  52.             {
  53.                 base.BeginInvoke(new ObjectHandler(OnLogin), new object[] { sender });
  54.             }
  55.             else
  56.             {
  57.                 txtlogin.AppendText(((agsXMPP.XmppClientConnection)(sender)).Username + "#");
  58.             }
  59.         }
  60.  
  61.     }
  62. }

how can i log in id or id's with Proxy ?

Thanks
This post was edited on 2013-07-12, 08:12 by Alex.
Avatar
Alex #2
Member since Feb 2003 · 4296 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by ramtin:
how can i log in id or id's with Proxy ?

which kind of proxy are you using? agsXMPP supports only HTTP proxy over BOSH. There is no support for proxies on socket connections.

Alex
This post was edited on 2013-07-12, 11:05 by Alex.
Avatar
ramtin #3
User title: RamTin
Member since Mar 2013 · 26 posts
Group memberships: Members
Show profile · Link to this post
HTTP
Avatar
Alex #4
Member since Feb 2003 · 4296 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
you are using Nimbuzz. As far as I know Nimbuzz supports only legacy XMPP over sockets. agsXMPP has no support for Proxy connections on sockets.
Avatar
krishmal #5
Member since Apr 2014 · 2 posts
Group memberships: Members
Show profile · Link to this post
Subject: hi
can you fix this and give solution to connect nimbuzz with proxy or proxy socket
Avatar
Alex #6
Member since Feb 2003 · 4296 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
use MatriX, it supports all kind of proxies.

Alex
Avatar
krishmal #7
Member since Apr 2014 · 2 posts
Group memberships: Members
Show profile · Link to this post
can you give me the code I want a login code id+ pw+proxy
Avatar
Alex #8
Member since Feb 2003 · 4296 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
in MatriX look at the following properties of XmppClient

  • ProxyType
  • ProxyHostname
  • ProxyPort
  • ProxyUser
  • ProxyPass
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