supercoeus / msnp-sharp

Automatically exported from code.google.com/p/msnp-sharp
0 stars 1 forks source link

File Inivation Don't show up. #136

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.I have a command: !download ID, and !getfiles 
2.I have a void for sending the file
3.Afer last Console output nothing happens. But the but still respond.

Void for sending file:

                private void SendFile(int id,Contact contact)
                {

                        DirectoryInfo di = new 
DirectoryInfo(System.Environment.CurrentDirectory + "\\Downloads");
                        FileInfo[] rgFiles = di.GetFiles("*.*");

                        Out.WriteLine("Client.Filesystem", "Founded folder: 
" + System.Environment.CurrentDirectory + "\\Downloads"); //This line shows 
up

                        if (rgFiles[id] == null)
                        {
                            SendString("Dat bestand bestaat niet!");
                            Out.WriteError("Client.Filesystem", "Error 
loading files!");
                            return;
                        }
                        else
                        {
                            try
                            {
                                string filepath = rgFiles[id].FullName;
                                string filename = rgFiles[id].Name;
                                Out.WriteLine("Client.Filesystem", "Trying 
to send: " + filename); // This line shows up

                                MSNSLPHandler msnslpHandler = 
Conversation.Messenger.GetMSNSLPHandler(contact);
                                FileStream fileStream = new 
FileStream(filepath, FileMode.Open, FileAccess.Read, FileShare.Read);
                                P2PTransferSession session = 
msnslpHandler.SendInvitation(Conversation.Messenger.Owner, contact, 
filename, fileStream);

                                MSNObject test = new 
MSNObject(Conversation.Messenger.Credentials.Account,fileStream,MSNObjectTy
pe.ShareFile,filepath);

msnslpHandler.SendInvitation(Conversation.Messenger.Nameserver.Owner, 
contact, test);

                                //session.StartDataTransfer(true);
                            }
                            catch (MSNPSharpException ex)
                            {
                                Out.WriteError("Client", ex.Message);
                            }
                        }
                }

What is the expected output? What do you see instead?
I See Nothing. And i expected a File inivation.

What version of the product are you using? (MSNPSharp, OS, Mono etc.)
I'm using the lastest version: 3.5.0.0 with Protocol 18,

Please provide any additional information below.
thats all i need to say.

Original issue reported on code.google.com by WendellM...@gmail.com on 24 Sep 2009 at 4:40

GoogleCodeExporter commented 8 years ago
Hi,
This is a bug, someone has report it before, please wait, we will fix it.

Original comment by freezing...@gmail.com on 24 Sep 2009 at 6:22

GoogleCodeExporter commented 8 years ago
Ok Tnx!

Original comment by WendellM...@gmail.com on 24 Sep 2009 at 7:09