Not logged in. · Lost password · Register
Forum: XMPP XMPP Protocol RSS
how to add transport in jabber client
Avatar
xishan #1
Member since Aug 2006 · 8 posts
Group memberships: Members
Show profile · Link to this post
Subject: Transport
hi,
I want to add an interface for transport addition in my jabber client but i don't have any idea about transport. can anybody out there can help me in this regard??
i used agsxmpp SDK to build my jabber client in c#.
Xishan Shigri
Avatar
Alex #2
Member since Feb 2003 · 4245 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hello,

what you are looking for is JEP-0077 In-Band Registration:
http://www.jabber.org/jeps/jep-0077.html

In agsXMPP SDK you can find the needed classes in the agsXMPP.protocol.iq.register namespace.

See also JEP-0100 for best practices about gateway interaction:
http://www.jabber.org/jeps/jep-0100.html

Alex
Alexander Gnauck
AG-Software
Avatar
xishan #3
Member since Aug 2006 · 8 posts
Group memberships: Members
Show profile · Link to this post
thanks alex, so nice of
Xishan Shigri
Avatar
xishan #4
Member since Aug 2006 · 8 posts
Group memberships: Members
Show profile · Link to this post
can u direct me though some examples i you know anything .... as i go through the documentation but now i am just confused that where to start??
Xishan Shigri
Avatar
Jabberer #5
Member since Feb 2006 · 249 posts
Group memberships: Members
Show profile · Link to this post
Hi,

there is no sample for that in the SDK yet.
You can take a look at the search in the MiniClient. Register works similar to the seach.

  • Request the registration fields or form from the transpoort/gateway
  • fill out the fields or form and submit it
  • process the serverresponse (success or error)

Only the last step is different than in search because it returns also data with the result.

If you have a commercial licence you can contact our support for a example code.
Software Developer
AG-Software
Avatar
xishan #6
Member since Aug 2006 · 8 posts
Group memberships: Members
Show profile · Link to this post
Register reg = new Register("xishan@hotmail.com","password");
XmppCon.Send(reg);


Is it the right way to get connect??
Xishan Shigri
Avatar
Jabberer #7
Member since Feb 2006 · 249 posts
Group memberships: Members
Show profile · Link to this post
no,
you register with the transport, not with the user ID.

1) request the register fields and show them to your user
2) user has to enter the data to this fields, normally username and password
3) sumbit this fields, if you get a result and no error you are done

Everything is described step by set in this Jeps:
http://www.jabber.org/jeps/jep-0077.html
http://www.jabber.org/jeps/jep-0100.html
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: XMPP XMPP Protocol RSS