I am trying to create a socket DCC emulation for a bot I am making, and although I have been able to do it in the past I have forgot 1 key bit of information.

I know that after every packet is received that the receiver must send an ack to the sender of the total filesize already downloaded. I can't remember, however, what format this filesize is sent in. iirc, it was $longip(blah) and to do with a binvar but I'm really at a loss here.

------

Well, looks like I replied to my own thread without anyone even viewing it!

In case anyone cared (?), here is the code:

bset &size 1 $replace($longip($file(<local filename>).size),$chr(46),$chr(32))
sockwrite $sockname &size

Last edited by weezy; 31/08/04 07:02 PM.