Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
rmamddf #1
Member since Jul 2006 · 4 posts
Group memberships: Members
Show profile · Link to this post
Subject: How to login with Proxy
 I want to login the miniclient with proxy,but I do not know how to do it !
 I mean  how can I develop this function

Help!

Jim
Avatar
Jabberer #2
Member since Feb 2006 · 249 posts
Group memberships: Members
Show profile · Link to this post
Hello,

you have to extend the Socket classes ClientSocket.cs and BaseSocket.cs for Proxy support.
Software Developer
AG-Software
Avatar
rmamddf #3
Member since Jul 2006 · 4 posts
Group memberships: Members
Show profile · Link to this post
Hi Jabberer:

Thank you for your advise

I found these codes in ClientSocket.cs:

  _socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);

 _socket.BeginConnect(endPoint, new AsyncCallback(EndConnect), null);


I think it's for xmpp.open() .I don't konw how to extend it for Proxy support?

Jim
Avatar
Jabberer #4
Member since Feb 2006 · 249 posts
Group memberships: Members
Show profile · Link to this post
This function does an asynchronous socket connect in the ClientSocket. The Open Method is XmppClientConnection is doing much more than only opening a socket.

Which kind of Proxy support do you need? SOCKS or HTTP? If you need HTTP Proxy then you should take a look a HTTP-Polling which is already supported by the SDK. Because persistant connections and HTTP tunneling is not supported by all HTTP proxies.
Software Developer
AG-Software
Avatar
rmamddf #5
Member since Jul 2006 · 4 posts
Group memberships: Members
Show profile · Link to this post
Hi Jabberer:

I want to use HTTP Proxy.
Could you provide an example about HTTP proxy for Jabber Client ?

thanks

Jim
This post was edited on 2006-08-02, 10:25 by rmamddf.
Avatar
Jabberer #6
Member since Feb 2006 · 249 posts
Group memberships: Members
Show profile · Link to this post
Hello,

If you want HTTP Proxy then i would suggest you to use a server which support HTTP Polling (eg. eJabberd).
The problem is that most HTTP proxies don't allow persistant TCP/IP connections (CONNECT Method in HTTP). With http polling you don't have that problem because you poll the server in intervals. The library supports HTTP Polling also with HTTP Proxy.

  1. xmppConn.SocketConnectionType = agsXMPP.net.SocketConnectionType.HttpPolling;

if you don't want to use Http Polling or you don't have a server which support it then you have to add HTTP proxy support on your own, because it's not implemented yet. I have no idea if Proxy support is on our Roadmap, i have to talk to Alex about that.

We can also implement it for you on a customer base. For that contact us directly by email.
Software Developer
AG-Software
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