views:

68

answers:

1

Hi I m working on an online text chat program in C#.Net . For this i m using ejabberd server and for build a client m using jaber.net .But i m facing some problem during the new user registration . Can anyone give me a proper code for register new user or some advise or instruction to create new account.

Any type of help will be appreciated.

Thanks in advance

A: 

Hi leppie

For make client used dll - jaber-net

my code for new registration is given below :

            JID jid = new JID(txtName.Text, ServerName,Resource);
                jClient.User = txtName.Text;
                jClient.Password = txtNewPwd.Text;


                jClient.Connect();
                jClient.Register(jid);
                jClient.AutoLogin = false;

                jClient.Close(true);

                jClient.OnLoginRequired += new bedrock.ObjectHandler(jc_OnLoginRequired);

                jClient.OnRegisterInfo += new RegisterInfoHandler(this.jc_OnRegisterInfo);
                jClient.OnRegistered += new IQHandler(jc_OnRegistered);

But when i run this code : Sometimes it execute executes all the events OnLoginRequired,OnRegisterInfo and OnRegistered and Sometimes no events execute

SR Dusad
You should edit your original question to include this information.
Christopher