Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
marcmora #1
Member since Jan 2015 · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: Send file
Hi,
I'm trying to develop a simple chat client in WPF (c#). The server is OpenFire and I can send and recieve message without problems.
But I can't send file. If I send with Spark client  I can recieve the file but with Matrix SDK I can't send file, nothing occurs.

My code is this:

  1. xmppClient = new XmppClient
  2.             {
  3.                 XmppDomain = "win-sl7qe8d17eq",
  4.                 Username = "test2",
  5.                 Password = "test2"
  6.             };
  7. xmppClient.Status = "Online";
  8. xmppClient.Open();
  9.  
  10. ...
  11. Jid senderJid = new Jid("test3", "win-sl7qe8d17eq", "Matrix");
  12.  
  13. FileTransferManager mg = new FileTransferManager();
  14. mg.XmppClient = xmppClient;
  15. mg.OnStart += mg_OnStart;
  16. mg.OnError += mg_OnError;
  17. mg.OnFile += mg_OnFile;
  18. mg.Send(senderJid, @"test.txt", "test");


What I'm doing wrong?
This post was edited on 2015-01-26, 17:28 by Alex.
Avatar
Alex #2
Member since Feb 2003 · 4322 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
have you tried to run 2 instances of the MiniClient example and send the file from one MiniClient to another?
Does this work?

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