mIRC Home    About    Download    Register    News    Help

Topic Options
#139124 - 11/01/06 09:01 AM getting binary files using socket?
bleach Offline
Vogon poet

Registered: 02/09/03
Posts: 156
how do I download any binary file by using sockets?
can anyone show me an example?

Top
#139125 - 11/01/06 11:39 AM Re: getting binary files using socket?
FiberOPtics Offline
Hoopy frood

Registered: 05/02/04
Posts: 2019
Loc: Leuven, Belgium
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.

Top
#139126 - 12/01/06 08:57 AM Re: getting binary files using socket?
bleach Offline
Vogon poet

Registered: 02/09/03
Posts: 156
ah thanks thats good but I want to know hot to downloading files using sockets too..

Top
#139127 - 12/01/06 09:09 AM Re: getting binary files using socket?
FiberOPtics Offline
Hoopy frood

Registered: 05/02/04
Posts: 2019
Loc: Leuven, Belgium
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.

Top
#139128 - 12/01/06 09:43 AM Re: getting binary files using socket?
bleach Offline
Vogon poet

Registered: 02/09/03
Posts: 156
thank you so much smile

Top
#139129 - 25/01/06 11:24 AM Re: getting binary files using socket?
Crash_N_Burn Offline
Babel fish

Registered: 13/01/06
Posts: 61
Loc: Portugal / Lisboa
Amaizing shocked ! i dont knew that feature...its around since what version of mIRC?
_________________________
The practice do the Master...

Top
#139130 - 25/01/06 12:49 PM Re: getting binary files using socket?
FiberOPtics Offline
Hoopy frood

Registered: 05/02/04
Posts: 2019
Loc: Leuven, Belgium
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.

Top
#139131 - 26/01/06 02:47 AM Re: getting binary files using socket?
Crash_N_Burn Offline
Babel fish

Registered: 13/01/06
Posts: 61
Loc: Portugal / Lisboa
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...

Top