mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2004
Posts: 12
F
Fey Offline OP
Pikka bird
OP Offline
Pikka bird
F
Joined: Sep 2004
Posts: 12
Ok, now I'll try to explain what I don't understand. You can send and recieve packets in C. They look like:

#define SOMETHING_LOGIN 0x000c

struct something login {
int uin; /* your id */
int hash; /* password hash */
int local_ip; /*ip */

};

This is how they look. I don't know how do you send them in C and that's not my problem. The case is that I want to send this packet trhough mIRC and don't know if it's possible (probably would involve binvars i guess). Or get such packet from host and *read* it actually - when i try to write it to a file it fills up with fuzzy characters. Can anyone show me how this should be done in mIRC, if possible at all? Thanks

Joined: Sep 2004
Posts: 73
S
Babel fish
Offline
Babel fish
S
Joined: Sep 2004
Posts: 73
there are no structures in mIRC.. if this is the structure u want .. in ur case u can put all the vars in one variable .. separated by dots ... and when sent/recieved ... part them with $gettok()

ex:

set %struct $+(%uin,.,%hash,.,%local_ip)
and send it useing sockets or write it to a file ... useing /write

$gettok(%struct,1,46) is the first
$gettok(%struct,2,46) ...
$gettok(%struct,3,46) ...

Last edited by SteeleR; 17/07/05 10:15 PM.

HanPeg HanPeg u BuHaru HanPeg nPu noPa}|{eHue kParoM u nAk HanPeg
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
if you want to send a file, why not use DCC SEND?
much easier to send that pic of the big fish you caught on your last hunting trip than writing your own file sending script.


Link Copied to Clipboard