mIRC Homepage
Posted By:
bleach
getting binary files using socket?
-
11/01/06
09:01 AM
how do I download any binary file by using sockets?
can anyone show me an example?
Posted By:
FiberOPtics
Re: getting binary files using socket?
-
11/01/06
11:39 AM
Thanks to
$download()
you no longer need to script such a thing, you just specify something like:
var %url =
http://mirc.stealth.net/download/mirc616.exe
if ($download(mirc616.exe, GET, %url , 2, binary)) run mirc616.exe
else echo -a Error retrieving data
Posted By:
bleach
Re: getting binary files using socket?
-
12/01/06
08:57 AM
ah thanks thats good but I want to know hot to downloading files using sockets too..
Posted By:
FiberOPtics
Re: getting binary files using socket?
-
12/01/06
09:09 AM
With sockets, you sockread into a &binvar, and /fwrite or /bwrite to a file.
There's no difference to downloading plain text data, just using binvars instead of regular variables.
You can find various examples using the
Search
feature.
Posted By:
bleach
Re: getting binary files using socket?
-
12/01/06
09:43 AM
thank you so much
Posted By:
Crash_N_Burn
Re: getting binary files using socket?
-
25/01/06
11:24 AM
Amaizing
! i dont knew that feature...its around since what version of mIRC?
Posted By:
FiberOPtics
Re: getting binary files using socket?
-
25/01/06
12:49 PM
What feature, sockets? Sockets have been there since: 13/12/97 - mIRC v5.3
If you're referring to the $download snippet, I made it this month, it's brand new.
Posted By:
Crash_N_Burn
Re: getting binary files using socket?
-
26/01/06
02:47 AM
I said for the identifier $download.
its is possible use this identifier for all version of mIRC, except old versions?
©
mIRC Discussion Forums