User Tag List

Results 1 to 10 of 10

Thread: FileSender Source Code (Lacewing)

  1. #1
    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)

    FileSender Source Code (Lacewing)

    Most of you know about my FileSender, and you've all seen Stephen1980's. Well, just to show how it can be done, I am posting the source of mine. This time it is the Lacewing source so you don't have to convert my old outdated source from OINC.

    There are two files, the working one "FileSender_Lacewing.mfa", which is the one you should be looking at for how to do it. However it's dev-only, so I also have included a "FileSender_Lacewing_NO_DEV.mfa", which you SHOULD NOT USE. It is for 'display' only. The reason is that A. it grabs username from command line, if there isn't a username given it closes. B. It doesn't ask to overwrite files, they will be overwritten anyway.

    It is up to you to make your own system for file sending based on what you need it for. Please don't copy code if you don't have any idea what it's for or how to implemen it into your app!

    If you have any questions, please ask here. SendBytesSize is the variable for how large each packet of the file being sent hould be. Jamie says the max is 1024 because of how the header is, but you can get errors as low as 512, so I used 416 for the size. This is NOT how much it sends each second, but rather, it is how much it sends each frame of the application.

    Good luck with using it,
    -LB
    Attached files Attached files
    Working as fast as I can on Fusion 3

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: FileSender Source Code (Lacewing)

    Quote Originally Posted by LB
    Jamie says the max is 1024 because of how the header is
    I don't remember saying that! It should let you send more than a few KB - not sure why it doesn't.

    You can't transfer ridiculously huge packets though - mainly because Lacewing has to buffer the whole packet, and because it'd block the TCP stream and the ping/pong messages wouldn't get through in time.

  3. #3
    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)

    Re: FileSender Source Code (Lacewing)

    Remember with OINC I used to get errors "The packet is too large to BLAST, please use SEND instead" if I sent higher than 512 bytes. I was using SEND. I just don't know if you ever fixed that or not. I'll try!
    Working as fast as I can on Fusion 3

  4. #4
    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)

    Re: FileSender Source Code (Lacewing)

    Forgot to reply to this thread but as you can see from the latest version of filesender I am definantly sending a lot more now without problems.

    Thanks Jamie, I would have never sent much more than that, lol!
    Working as fast as I can on Fusion 3

  5. #5
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: FileSender Source Code (Lacewing)

    No problem - glad it's working out for you now!

  6. #6
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    1,964
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)

    Re: FileSender Source Code (Lacewing)

    LB, you do know Superbar only works on Windows 7, right?

  7. #7
    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)

    Re: FileSender Source Code (Lacewing)

    Yes. Why do you ask?
    Working as fast as I can on Fusion 3

  8. #8
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    1,964
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)

    Re: FileSender Source Code (Lacewing)

    Might want to make a note of that in case the user doesn't know

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleUnicode Add-on
    Tim's Avatar
    Join Date
    Apr 2007
    Location
    NSW - Australia
    Posts
    390
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: FileSender Source Code (Lacewing)

    I could add a feature "Is OS supported" to the extension, the only problem is that the source won't compile anymore

    I might try and fix that later

  10. #10
    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)

    Re: FileSender Source Code (Lacewing)

    Why do you need to add that feature? If the OS doesn't support it then nothing happens. I mean, it's not it'll will crash or anything! I've done lots of testing and it doesn't matter if it is run on Windows 7 or not.
    Working as fast as I can on Fusion 3

Similar Threads

  1. Export App as Source Code
    By Keith in forum Android Export Module Version 2.0
    Replies: 1
    Last Post: 27th July 2013, 10:03 AM
  2. How do I get the source code ?
    By Michael_Nelson in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 30th June 2011, 01:22 AM
  3. V-Code Generator Source Code
    By LB in forum File Archive
    Replies: 1
    Last Post: 10th March 2008, 08:52 PM
  4. Source code for ZIP object
    By Patrick in forum File Archive
    Replies: 0
    Last Post: 25th September 2006, 02:26 PM

Posting Permissions

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