Home
About
Download
Register
News
Help
Register
Log In
Forums
Scripts & Popups
getting binary files using socket?
Forums
Active Threads
Search
Who's Online
Help
Print Thread
getting binary files using socket?
#
139124
11/01/06
09:01 AM
Joined:
Sep 2003
Posts: 156
B
bleach
OP
Vogon poet
OP
bleach
Vogon poet
B
Joined:
Sep 2003
Posts: 156
how do I download any binary file by using sockets?
can anyone show me an example?
Copy Link to Clipboard
Re: getting binary files using socket?
#
139125
11/01/06
11:39 AM
Joined:
Feb 2004
Posts: 2,019
Leuven, Belgium
FiberOPtics
Hoopy frood
FiberOPtics
Hoopy frood
Joined:
Feb 2004
Posts: 2,019
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.
Copy Link to Clipboard
Re: getting binary files using socket?
#
139126
12/01/06
08:57 AM
Joined:
Sep 2003
Posts: 156
B
bleach
OP
Vogon poet
OP
bleach
Vogon poet
B
Joined:
Sep 2003
Posts: 156
ah thanks thats good but I want to know hot to downloading files using sockets too..
Copy Link to Clipboard
Re: getting binary files using socket?
#
139127
12/01/06
09:09 AM
Joined:
Feb 2004
Posts: 2,019
Leuven, Belgium
FiberOPtics
Hoopy frood
FiberOPtics
Hoopy frood
Joined:
Feb 2004
Posts: 2,019
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.
Copy Link to Clipboard
Re: getting binary files using socket?
#
139128
12/01/06
09:43 AM
Joined:
Sep 2003
Posts: 156
B
bleach
OP
Vogon poet
OP
bleach
Vogon poet
B
Joined:
Sep 2003
Posts: 156
thank you so much
Copy Link to Clipboard
Re: getting binary files using socket?
#
139129
25/01/06
11:24 AM
Joined:
Jan 2006
Posts: 61
Portugal / Lisboa
C
Crash_N_Burn
Babel fish
Crash_N_Burn
Babel fish
C
Joined:
Jan 2006
Posts: 61
Portugal / Lisboa
Amaizing
! i dont knew that feature...its around since what version of mIRC?
The practice do the Master...
Copy Link to Clipboard
Re: getting binary files using socket?
#
139130
25/01/06
12:49 PM
Joined:
Feb 2004
Posts: 2,019
Leuven, Belgium
FiberOPtics
Hoopy frood
FiberOPtics
Hoopy frood
Joined:
Feb 2004
Posts: 2,019
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.
Copy Link to Clipboard
Re: getting binary files using socket?
#
139131
26/01/06
02:47 AM
Joined:
Jan 2006
Posts: 61
Portugal / Lisboa
C
Crash_N_Burn
Babel fish
Crash_N_Burn
Babel fish
C
Joined:
Jan 2006
Posts: 61
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...
Copy Link to Clipboard
Hop To
News and Discussions ------
Latest News
General Discussion
Support ------
mIRC Help
Connection Issues
Scripts & Popups
Development ------
Feature Suggestions
Developers
Bug Reports
Print Thread
Switch to Threaded Mode
Show Likes
Link Copied to Clipboard
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage