yucatan Posted June 16, 2008 Posted June 16, 2008 is it posseble to send a file over tcp? is it posseble to send a whole dir over tcp ?
DjDeep00 Posted June 16, 2008 Posted June 16, 2008 (edited) #Yucatan...Look in the HELP file for TCP... Edited June 16, 2008 by DjDeep00
yucatan Posted June 17, 2008 Author Posted June 17, 2008 #Yucatan...Look in the HELP file for TCP...k i did but i cant find anything about sending a FILE i did find how to send a VAR so letters etc...
yucatan Posted June 18, 2008 Author Posted June 18, 2008 k i did but i cant find anything about sending a FILE i did find how to send a VAR so letters etc...???
torels Posted June 18, 2008 Posted June 18, 2008 (edited) Yes you can you need a server on the other side though and havc to pass three parameters 1) /FILE pathtofileontheserver 2) /CHK chunk(looping it for each chunk) 3) /ENDF and you have to split he file in this way: Func _Chunk($sString,$nSize) $aChunk[Int(StringLen($sString)/$nSize)+2]=[Int(StringLen($sString)/$nSize)+1] If IsInt(Number(StringLen($sString))/Number($nSize)) then dim $aChunk[Int(StringLen($sString)/$nSize)+1]=[Int(StringLen($sString)/$nSize)] for $i_=1 to $aChunk[0] if $i_=$aChunk[0] then $aChunk[$i_]=StringMid($sString,$nSize*($i_-1)+1) Else $aChunk[$i_]=StringMid($sString,$nSize*($i_-1)+1,$nSize) EndIf next Return $aChunk EndFunc Edited June 18, 2008 by torels Some Projects:[list][*]ZIP UDF using no external files[*]iPod Music Transfer [*]iTunes UDF - fully integrate iTunes with au3[*]iTunes info (taskbar player hover)[*]Instant Run - run scripts without saving them before :)[*]Get Tube - YouTube Downloader[*]Lyric Finder 2 - Find Lyrics to any of your song[*]DeskBox - A Desktop Extension Tool[/list]indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org
yucatan Posted June 27, 2008 Author Posted June 27, 2008 Yes you can you need a server on the other side though and havc to pass three parameters 1) /FILE pathtofileontheserver 2) /CHK chunk(looping it for each chunk) 3) /ENDF and you have to split he file in this way: Func _Chunk($sString,$nSize) $aChunk[Int(StringLen($sString)/$nSize)+2]=[Int(StringLen($sString)/$nSize)+1] If IsInt(Number(StringLen($sString))/Number($nSize)) then dim $aChunk[Int(StringLen($sString)/$nSize)+1]=[Int(StringLen($sString)/$nSize)] for $i_=1 to $aChunk[0] if $i_=$aChunk[0] then $aChunk[$i_]=StringMid($sString,$nSize*($i_-1)+1) Else $aChunk[$i_]=StringMid($sString,$nSize*($i_-1)+1,$nSize) EndIf next Return $aChunk EndFunc i dont fully understand how this code need to work.. can u explane how i use this ?
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