i'm writing a script which accepts a dcc file send with a socket for a custom dialog i can get the socket to connect but it causes errors to the sender... the sender needs an acknowlegement in NETWORK BYTE ORDER does anyone know how to do that conversion or if this script is incorrect
on 1:sockread:DCC:{
if ($sockerr > 0) { return }
sockread %dcc.data
if ($sockbr == 0) { return }
set %file.bytesent $calc(%file.bytesent + $sockbr)
echo -s %dcc.data
sockwrite -tn $sockname $sockbr
}