Jump to content


Photo

No Delay Ftp Upload Dll


  • Please log in to reply
34 replies to this topic

#1 GearGOD

GearGOD

    Deus Verus

  • GMC Member
  • 2153 posts

Posted 31 May 2006 - 08:34 AM

This dll can be used to run an FTP connect and upload on a sepperate thread, allowing your program to keep running while the upload takes place. There are provided downloading and directory-changing functions, but they are not threaded, or even tested. This thing comes as-is.
I also provided a mechanism that tracks running uploads and allows to enqeue new ones which will be processed after the current ones are done. All this happens quietly and leaves your game to do whatever the hell it wants in the meantime.

download

Edited by GearGOD, 23 May 2008 - 11:35 PM.

  • 0

#2 Sindarin

Sindarin

    Indie Game Developer

  • New Member
  • 1644 posts
  • Version:GM:HTML5

Posted 31 May 2006 - 07:34 PM

really nice one.
many people were asking for this and I wonder why there are no replies.
  • 0

#3 Chirantha

Chirantha

    GMC Member

  • New Member
  • 502 posts

Posted 01 June 2006 - 04:20 AM

Nice work geargod!

I wonder why no replies. Funny :|

NIce work 10/10 :)
  • 0

#4 Verruckt

Verruckt

    GMC Member

  • New Member
  • 54 posts

Posted 17 June 2006 - 12:51 AM

I finally got the upload part to work. But I can't get the "download" part of it to work. Can anyone help?

Edited by Verruckt, 20 January 2009 - 05:49 PM.

  • 0

#5 Timmo

Timmo

    GMC Member

  • New Member
  • 558 posts
  • Version:GM:HTML5

Posted 17 June 2006 - 06:48 AM

Is it secure, i mean can someone capture the password and data when he or she is playing that game.
  • 0

#6 GearGOD

GearGOD

    Deus Verus

  • GMC Member
  • 2153 posts

Posted 17 June 2006 - 07:10 AM

Is it secure, i mean can someone capture the password and data when he or she is playing that game.

Sure why not. Anyone can capture anything, that's why you don't give your games access to non-public sections of your webspace.
  • 0

#7 IsmAvatar

IsmAvatar

    Good Samaritan

  • GMC Member
  • 2411 posts
  • Version:GM8

Posted 17 June 2006 - 11:38 PM

I was looking for something along these lines, seeing as DOS upload was not sufficient in most cases. I now have an Upload button in all my file right click menus. :-)
  • 0

#8 ih8censorship

ih8censorship

    GMC Member

  • New Member
  • 165 posts

Posted 18 June 2006 - 07:26 AM

Sure why not. Anyone can capture anything, that's why you don't give your games access to non-public sections of your webspace.

unless something has changed, anyone with a packet scanner should be able to get your username and password and log in manuelly with it and have access to whatever that name does. but ya you could control what the program itself accesses i guess...
  • 0

#9 Verruckt

Verruckt

    GMC Member

  • New Member
  • 54 posts

Posted 18 June 2006 - 08:13 AM

I can't get the "download" part of it to work. Can anyone help?

<{POST_SNAPBACK}>

Anyone, please? So far all I've managed to do is somehow create a 0kb file that disappears after about 3 seconds.

Edited by Verruckt, 20 January 2009 - 05:49 PM.

  • 0

#10 Verruckt

Verruckt

    GMC Member

  • New Member
  • 54 posts

Posted 20 June 2006 - 02:31 AM

Why am I being ignored?
  • 0

#11 ChIkEn AtE mY dOnUtS

ChIkEn AtE mY dOnUtS

    Pwner of barcodes

  • GMC Member
  • 2409 posts

Posted 20 June 2006 - 02:36 AM

"There are provided downloading and directory-changing functions, but they are not threaded, or even tested. This thing comes as-is."

Did you read?
  • 0

#12 Verruckt

Verruckt

    GMC Member

  • New Member
  • 54 posts

Posted 20 June 2006 - 05:13 AM

"There are provided downloading and directory-changing functions, but they are not threaded, or even tested. This thing comes as-is."

Did you read?

<{POST_SNAPBACK}>

What, so that means that they simply do not work? ... Or that no-one knows how to work them?
  • 0

#13 freaky_entertainment

freaky_entertainment

    GMC Member

  • GMC Member
  • 287 posts

Posted 20 June 2006 - 01:22 PM

Why am I being ignored?

<{POST_SNAPBACK}>

Cause you are ugly :P

Btw . Nice DLL ^_^
  • 0

#14 GearGOD

GearGOD

    Deus Verus

  • GMC Member
  • 2153 posts

Posted 20 June 2006 - 01:36 PM

So has someone tested the dirchange/download functions?
  • 0

#15 Sindarin

Sindarin

    Indie Game Developer

  • New Member
  • 1644 posts
  • Version:GM:HTML5

Posted 06 September 2006 - 10:52 AM

I tried to upload something to my server and it didn't work...

here's my code:


ftp_start("62.1.232.12","webuser","*mypassword*")

it connects to the server, the connect status is green, but how do I use this

ftp_addFile("from (with or without working dir)","to")

I tried:

ftp_addFile("gg.txt","62.1.232.12/movein/alx")

but nothing appears on my server directory. ;)

Edited by Sindarin, 06 September 2006 - 12:39 PM.

  • 0

#16 IsmAvatar

IsmAvatar

    Good Samaritan

  • GMC Member
  • 2411 posts
  • Version:GM8

Posted 06 September 2006 - 03:29 PM

most servers use a linux filestructure, so you'd leave out the IP and just type the home directory. For me, it is something like this:

"/public_html/"
so if I wanted to upload a zipped dll to my dlls folder, i'd do this:

ftp_addFile("volume.zip","/public_html/dlls/volume.zip")
  • 0

#17 sloik2000

sloik2000

    GMC Member

  • New Member
  • 92 posts

Posted 03 January 2007 - 01:42 AM

Awesome! I've been looking for this for a long time.
Is there any way I could get a status indicator whilst uploading? If not, I'm sure I could just write a PHP script to do it for me.

Thanks for this!

Sorry about the bump, by the way...

Edited by sloik2000, 03 January 2007 - 02:22 AM.

  • 0

#18 andrewmc

andrewmc

    GMC Member

  • New Member
  • 440 posts

Posted 03 January 2007 - 03:02 AM

Is it secure, i mean can someone capture the password and data when he or she is playing that game.

<{POST_SNAPBACK}>


easily.
  • 0

#19 Fedor

Fedor

    GMC Member

  • New Member
  • 294 posts

Posted 03 January 2007 - 03:11 AM

Am I dreaming??? ;)
  • 0

#20 SioxerNic

SioxerNic

    Phara main programmer

  • New Member
  • 320 posts

Posted 05 January 2007 - 05:44 PM

I have tryid for some time :D

I have done any of the stuff you have in here and the upload still doesn't work.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users