mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2003
Posts: 156
B
bleach Offline OP
Vogon poet
OP Offline
Vogon poet
B
Joined: Sep 2003
Posts: 156
how do I download any binary file by using sockets?
can anyone show me an example?

Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
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


Gone.
Joined: Sep 2003
Posts: 156
B
bleach Offline OP
Vogon poet
OP Offline
Vogon poet
B
Joined: Sep 2003
Posts: 156
ah thanks thats good but I want to know hot to downloading files using sockets too..

Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
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.


Gone.
Joined: Sep 2003
Posts: 156
B
bleach Offline OP
Vogon poet
OP Offline
Vogon poet
B
Joined: Sep 2003
Posts: 156
thank you so much smile

Joined: Jan 2006
Posts: 61
C
Babel fish
Offline
Babel fish
C
Joined: Jan 2006
Posts: 61
Amaizing shocked ! i dont knew that feature...its around since what version of mIRC?


The practice do the Master...
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
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.


Gone.
Joined: Jan 2006
Posts: 61
C
Babel fish
Offline
Babel fish
C
Joined: Jan 2006
Posts: 61
I said for the identifier $download.

its is possible use this identifier for all version of mIRC, except old versions?


The practice do the Master...

Link Copied to Clipboard