Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
cvoluter #1
Member since Jan 2015 · 14 posts
Group memberships: Members
Show profile · Link to this post
Subject: Sending Raw stream
Hi,
I search for testing to develop a small application that able to send stream directly from textbox. Is there a method to directly send a text stream from the session xmpp as we do with a message ?

Thanks,
Avatar
Alex #2
Member since Feb 2003 · 4322 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Anything you send must be valid Xml. When you want to send Xml From a textbox then just use this code snippet:

  1. var xmlString = txtText.Text;
  2. var xmlElement = XmppXElement.LoadXml(xmlString);
  3. xmppCLient.Send(xmlElement);

Alex
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: MatriX RSS