Lide / jabber-net

Automatically exported from code.google.com/p/jabber-net
Other
0 stars 0 forks source link

Defect #126

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Connect to "gmail.com" and send to another man message in google chat

What is the expected output? What do you see instead?
I want to see the my message inside his shat window, but message sometimes comes

What version of the product are you using? On what operating system?
Operation System Windows 7 \ Product version 1.3.1.0

Please provide any additional information below.

When I run my console application - not all message takes my interlocutor....
And I don't reason this....

Code:
        private static string message;
        public static string _message
        {
            get { return message; }
            set { message = value; }
        }

        private static string emailToSend;
        public static string _emailToSend
        {
            get { return  emailToSend; }
            set { emailToSend = value; }
        }

        static JabberClient jc = new JabberClient();

        static void SendMessageToGoogleTalk(string message, string emailToSend)
        {
            jc.User = "***@gmail.com";
            jc.Server = "gmail.com";
            jc.Password = "****";
            _message = message;
            _emailToSend = emailToSend;
            jc.Connect();
            jc.OnError += client_OnError;
            jc.OnAuthenticate += client_OnAuthenticate;
            jc.Close();
        }

        static void client_OnAuthenticate(object sender)
        {
            jc.Message(emailToSend, message);
        }

        static void client_OnError(object sender, Exception exception)
        {
            isRecieveMessage = false;
        } 

And can I to know my message was received or not?

Original issue reported on code.google.com by alexandr...@gmail.com on 16 May 2012 at 5:44