Fabry Posted June 29, 2007 Posted June 29, 2007 (edited) I wrote a simple file tranfer, like eMule, but it is only a example. It's slow, but it supports more file. It can improve. It needs md5deep.exe for hash. It works with API. [autoit]#cs ---------------------------------------------------------------------------- AutoIt Version: 3.2.4.9 Author: Fabry Script Function: Template AutoIt script. #ce ---------------------------------------------------------------------------- #include <GuiConstants.au3> #Include <GuiListView.au3> #include<String.au3> #Include <GuiList.au3> #include<File.au3> #include <Process.au3> Dim $ips[64][9], $file1, $file_pro[3], $file_RX, $est, $file_TX, $data, $termina[6], $Progress[6], $perc[6], $files[100][64], $miei[100][64] Dim $listview, $Btn_Exit, $msg, $Status, $Btn_Insert, $ret, $Input_Index, $scaricati[5][64] Global $gui2 = -1 $versione = '1.0.0' UDPStartup() $nome = @ComputerName $My_ips = StringSplit(@IPAddress1, '.') Dim $Broadcast = $My_ips[1] & '.' & $My_ips[2] & '.' & $My_ips[3] & '.255' ;~ AutoItSetOption('TCPTimeout', 800) $socket1 = UDPOpen($Broadcast, 65532) If @error = 0 Then UDPSend($socket1, @IPAddress1 & 'md5deep.exe Edited June 29, 2007 by Fabry A lan chat (Multilanguage)LanMuleFile transferTank gameTank 2 an online game[center]L'esperienza è il nome che tutti danno ai propri errori.Experience is the name everyone gives to their mistakes.Oscar Wilde[/center]
Apzo Posted June 29, 2007 Posted June 29, 2007 Wow, it seems very interesting !!! Unfortunately, I don't understand italian (I should, I know ). Would you mind give us a simple guide or a step-by-step example ? How do I add a sharded directory ? Anyway, looks very promising ! Apzo. All the pop3 functions.Rsync your files on your USB key (or anywhere else)
Fabry Posted June 29, 2007 Author Posted June 29, 2007 It's possible sahre only one directory(default: @scriptdir\condivisi). To modify the directory to press opzioni>scegli cartella>salva. A part of code I picked it up from my chat. If someone shared some file and you just entered, press 'cerca' to refresh list of file. Ask me more information. A lan chat (Multilanguage)LanMuleFile transferTank gameTank 2 an online game[center]L'esperienza è il nome che tutti danno ai propri errori.Experience is the name everyone gives to their mistakes.Oscar Wilde[/center]
Pakku Posted June 29, 2007 Posted June 29, 2007 Hi, Question: why UDP and not TCP? And i like the idea of more than one files Arjan How can someone use Windows without using AutoIt?That one would properly don't know how to handle a computer!My scripts:Send files over internetKind of RSS reader3Draw ProUDF: convert a character string to a binary one and backCalculate PiCommand line downloader (Youtube/Google video)Set the transparency of a window just by hitting a key!Secure your pcOther things:My filemanMy profilePM me
Fabry Posted June 29, 2007 Author Posted June 29, 2007 I wanted hold the structure of my chat. UDP is profit because I can use the broadcast message and I can send blocks of data. A lan chat (Multilanguage)LanMuleFile transferTank gameTank 2 an online game[center]L'esperienza è il nome che tutti danno ai propri errori.Experience is the name everyone gives to their mistakes.Oscar Wilde[/center]
realkiller Posted June 30, 2007 Posted June 30, 2007 tcp can send that asswell the only positif thing about tcp is that it has a ecc code in the packet trailer. up does not have ecc and transfers between pc can be interrupted Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2
zatorg Posted June 30, 2007 Posted June 30, 2007 Nice. Someone has finally adapted UDP... Concerning the UDP vs TCP, well, UDP is faster because the packet headers are not so complicated..
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