Not logged in. · Lost password · Register
Forum: agsXMPP SDK Support RSS
Page: previous  1  2 
Avatar
danny_dong #16
Member since Apr 2011 · 9 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 5677
Alex:
This means when client2 received the message the client will sent you back an receipt.

Yes, I know. What I need is a final XMPP standard for implementing this.

Seems here it is. XEP-0184: Message Delivery Receipts.

But unfortunatelly, it's only a Draft Standard.

So after all there's NOT yet a standard for implementing the MDP!

Awaiting for the final...

Anyway thank you so much Alex ;-)
Avatar
s.ghasemi #17
Member since Jul 2017 · 29 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 797
Subject: Help me please...
Hi Alex

1. Where do we put these codes which are in part 1 and 2 of client ?
2. Since I didnt see the send function, is the first part of the code enough to send the message?
3. Should i put the secend code in OnRecieve event of second client?

Thanks a lot.
Avatar
s.ghasemi #18
Member since Jul 2017 · 29 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 797
Quote by Alex on 2006-04-18, 21:03:
Here is a c# sample

Client 1 sends a message and requests the displayed event. The messages need a unique id which i generated here with the GenerateId() method.
  1. agsXMPP.protocol.client.Message msg = new agsXMPP.protocol.client.Message();
  2. msg.From = new Jid("romeo@montague.net");
  3. msg.To = new Jid("juliet@capulet.com");
  4. msg.GenerateId();
  5. msg.Body = "Hello World";
  6. // Add the event to the message
  7. agsXMPP.protocol.x.Event ev = new Event();
  8. ev.Displayed = true;
  9. msg.AddChild(ev);

When client 2 receives this message and is sending the displayed notification to client 1
  1. agsXMPP.protocol.client.Message msg2 = new agsXMPP.protocol.client.Message();
  2. msg2.From = new Jid("juliet@capulet.com");
  3. msg2.To = new Jid("romeo@montague.net");
  4. // Add the event to the message           
  5. agsXMPP.protocol.x.Event ev2 = new Event();
  6. ev2.Displayed = true;
  7. ev2.Id = msg.Id;
  8. msg2.AddChild(ev2);

Alex


Hi Alex

1. Where do we put these codes which are in part 1 and 2 of client ?
2. Since I didnt see the send function, is the first part of the code enough to send the message?
3. Should i put the secend code in OnRecieve event of second client?

Thanks a lot.
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:
Page: previous  1  2 
Forum: agsXMPP SDK Support RSS