dantay9 Posted July 6, 2009 Share Posted July 6, 2009 (edited) I know there are several FTP UDF's, but I had trouble finding examples. I also had a little trouble finding TCP sending systems that worked. And those that did work, didn't have a gui or anything. So I made a simple TCP file transfer system with a gui. It is for learning purposes. It isn't a big program, just an small, working example of how to use TCP protocol. Tell me how you like it. Previous downloads: 72TCP File Transfer.au3 Edited August 19, 2009 by dantay9 konan 1 Link to comment Share on other sites More sharing options...
dexto Posted July 6, 2009 Share Posted July 6, 2009 Thx a bunch! Link to comment Share on other sites More sharing options...
dantay9 Posted July 6, 2009 Author Share Posted July 6, 2009 (edited) Thanks! Mine is one of the smallest working file transfer systems with a gui on the forum. If you are looking for something a little more advanced, take a look at ftp. I think it is much easier to transfer files using ftp. A great example is Pocket FT. Edited July 6, 2009 by dantay9 Link to comment Share on other sites More sharing options...
playlet Posted July 8, 2009 Share Posted July 8, 2009 (edited) --- Edited August 18, 2016 by playlet Link to comment Share on other sites More sharing options...
FireFox Posted July 8, 2009 Share Posted July 8, 2009 @dantay9 I know that my FT-Pocket is a good example, but in this way i can't make better because autoit language does not support multi threading so I can't make a big program like Torrent to send and receive files from different ips, wich is very interessant... I don't know if you have some ideas about your or mine script, but you can pm me and we will work together on it Cheers, FireFox. Link to comment Share on other sites More sharing options...
dantay9 Posted July 8, 2009 Author Share Posted July 8, 2009 (edited) @playlet Welcome to the forum! Yes there is a way. Seeing as you are new here, I will explain why you had to restart the program every time you sent a file. The reason was I never closed the listening port made at the very beginning of my receiver function. Before you can make a socket on a port, you must make sure you close all other sockets on that port. I closed the socket at the end of my receiver function. I also added the drag and drop to the send tab. You don't need it for the receive tab because the input should be a folder, not a file. Edited July 8, 2009 by dantay9 Link to comment Share on other sites More sharing options...
playlet Posted July 8, 2009 Share Posted July 8, 2009 (edited) --- Edited August 18, 2016 by playlet Link to comment Share on other sites More sharing options...
Xand3r Posted July 8, 2009 Share Posted July 8, 2009 before you can make a socket on a port, you must make sure you close all other sockets on that port. I closed the socket at the end of my receiver function.false...you can create more than one socket on a listening port i.e. you listen on port 80 and you have one client conected... if another client tries to connect you don't have to close the socket on the first client in order to make room for the second ... you can just handle both Only two things are infinite, the universe and human stupidity, and i'm not sure about the former -Alber EinsteinPractice makes perfect! but nobody's perfect so why practice at all?http://forum.ambrozie.ro Link to comment Share on other sites More sharing options...
dantay9 Posted July 9, 2009 Author Share Posted July 9, 2009 (edited) false...you can create more than one socket on a listening port i.e. you listen on port 80 and you have one client conected... if another client tries to connect you don't have to close the socket on the first client in order to make room for the second ... you can just handle both Yes, I know that. But, the way my script is set up, for noobs, I create a new listening socket each time a file is received. It is for visual learning purpose and allows people to use the function without it relying on any other functions or variables. Edited August 20, 2009 by dantay9 Link to comment Share on other sites More sharing options...
playlet Posted August 3, 2009 Share Posted August 3, 2009 (edited) --- Edited August 18, 2016 by playlet Link to comment Share on other sites More sharing options...
dantay9 Posted August 5, 2009 Author Share Posted August 5, 2009 I think I know what you mean, but it all depends on what loop you want to exit the _ReceiveFile function at. Figure out which loop you want (or all three) and put something like this into the loop: If _IsPressed("1B") Then ;Esc key FileClose($FileHandle) ;only use after $FileHandle is opened TCPCloseSocket($Socket) TCPCloseSocket($Listen) ToolTip("") EndIf That is for a keypress. You should be able to figure it out using a button with the same principles. Remember, this is just a very simple transfer program. There are much better and more involved programs on the forum. Link to comment Share on other sites More sharing options...
playlet Posted August 5, 2009 Share Posted August 5, 2009 (edited) --- Edited August 18, 2016 by playlet Link to comment Share on other sites More sharing options...
playlet Posted December 3, 2010 Share Posted December 3, 2010 (edited) --- Edited August 18, 2016 by playlet Link to comment Share on other sites More sharing options...
Scrappy53 Posted February 6, 2015 Share Posted February 6, 2015 Hello, my English is bad. This translation is from the site I write for. This sample program does not work. Please code the layout again? Link to comment Share on other sites More sharing options...
faldo Posted January 13, 2016 Share Posted January 13, 2016 (edited) I get a problem transfering files larger than about 20-30 megabytes... could it be beacuse the script sends all the binaries without "chunking" them?*Edit* I just altered the script to send the file in 4kb pieces and all is working fine now Edited January 14, 2016 by faldo Check out my other scripts: RDP antihammer/blacklist generator | Phemex cryptocurrency exchange API Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now