User Tag List

Page 5 of 6 FirstFirst ... 3 4 5 6 LastLast
Results 41 to 50 of 53

Thread: Sending files using Lacewing

  1. #41
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    Sevennemesis's Avatar
    Join Date
    May 2012
    Location
    Québec
    Posts
    235
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I made several test distance with my server. your system does not take into account the connection speed of the user.

    so I add a event. Whenever the client sends 16384 bytes, it stops. The server receive the bytes, then it sends a confirmation to the customer. the customers receive the confirmation ... sends additional 16384 bytes. so on until the complete be sent. in this way, send speed may vary, and prevents corrupted files.

    Now I have to create a system that automatically chooses a free channel.

  2. #42
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    XStar's Avatar
    Join Date
    Feb 2012
    Location
    Winchester, VA
    Posts
    1,165
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    To Sevennemesis: Cool! You could have a person automatically send a number, say 1, from a subchannel or channel to indicate that it's taken, then constantly save and load an ini with that data in it to determine the next highest available channel. Of course, that's the messy way, and not everyone enjoys hidden data sending, but whatever.

    To LB: OK, here's the file:
    Attached files Attached files

  3. #43
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Sevennemesis View Post
    and prevents corrupted files.
    The files couldn't get corrupted in the first place ;p

    Quote Originally Posted by Sevennemesis View Post
    Now I have to create a system that automatically chooses a free channel.
    Why? You don't need a channel, let alone a username, to send data to the server.

    Quote Originally Posted by XStar View Post
    To Sevennemesis: You could have a person automatically send a number, say 1, from a subchannel or channel to indicate that it's taken, then constantly save and load an ini with that data in it to determine the next highest available channel. Of course, that's the messy way, and not everyone enjoys hidden data sending, but whatever.
    Definitely do not do this.

    @XStar: Your problem is that you're trying to join a channel before your name has been set, still. You have to do them in separate events - set your name On Connect, then wait for the condition On Name Set before trying to join a channel. Otherwise, you will not be allowed to join any channel.
    Working as fast as I can on Fusion 3

  4. #44
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    XStar's Avatar
    Join Date
    Feb 2012
    Location
    Winchester, VA
    Posts
    1,165
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OK, did that, on name set, then join. It is still joining, as the green light indicates. However, it still does not receive any files.

    I'm looking over the events one more time to see if I missed anything, but at this point, I think it's a lost cause. An unidentifiable source has done the sender wrong.

    I'll go over it a few more times...

    Here is one with a bug fix: (But still no download)
    Attached files Attached files

  5. #45
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Here's your main problem: look at the filename you're using for when you save the received data:

    Appdrive$+Appdir$+"Recieved"+Received$( "Lacewing Relay Client" )

    In this case, the Received$() expression is the binary data of the message, which most likely contains characters that aren't allowed in filenames. I assume you wanted to use the filename that was being send as a separate message - as I said, you shouldn't be doing this, and the way you are doing it won't work either.

    Also Appdrve$+Appdir$ or even Apppath$ is not needed at all - just specifying a filename will put it in the same dirrectory as needed.
    Working as fast as I can on Fusion 3

  6. #46
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    XStar's Avatar
    Join Date
    Feb 2012
    Location
    Winchester, VA
    Posts
    1,165
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh, really? I didn't know that! I'll get right to editing!!!

    OK, done. No difference... I'm sorry great and powerful LB, but nothing appears to be working... I was certain that that was it, however I was just proven incorrect.

    I look one last time, just for kicks, but then, I'll just classify it as "Not Working".

    Forget what I just said! It turns out by appending via a channel, you DO need Apppath$ or such! I added it in and it worked!!!!

    HOORAY!!!

    Thanks so much for your help!

  7. #47
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    Sevennemesis's Avatar
    Join Date
    May 2012
    Location
    Québec
    Posts
    235
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the test that I did, is designed to send photos to my server. all photos are resized and compressed, they are then placed in a queue and send one after one.

    at my server, I create a list of users connect by "ID" and the name of the file that are now about to send. séparrer by "%". each time a byte is received, it adds the file name is in the list are compared to "ID" with "String tokenizer"

    I tried with 10 users at the same time ... everything works perfectly!with the same Channel

  8. #48
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    With sending data to the server you don't even need to connect to a channel, let alone set a username.
    Working as fast as I can on Fusion 3

  9. #49
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    Sevennemesis's Avatar
    Join Date
    May 2012
    Location
    Québec
    Posts
    235
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have no choice, for the commercial project, for now I'm just testing.

    all data sent by the client will be stored in their company number. everything is encrypted in 504 bit

  10. #50
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    That has nothing to do with whether you set a name or join a channel
    Working as fast as I can on Fusion 3

Page 5 of 6 FirstFirst ... 3 4 5 6 LastLast

Similar Threads

  1. Sending colors over Lacewing and Optimization help
    By zoomingmaf in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 8th July 2011, 12:38 AM
  2. Replies: 1
    Last Post: 19th June 2011, 05:20 PM
  3. Sending files using MOO
    By DJFuego in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 16th April 2007, 11:02 PM
  4. Sending Files
    By Brandon in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 12th April 2007, 12:59 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •