I thought I send this message but it didn't show on the list.

The problem is not in the script you posted.
Try this: replace " write data  to socket socketY" with
____________
if the length of data <=4096 then
    write data  to socket socketY
else
put char 1 to 4096 of data into tChunk
delete char 1 to 4096 in data
write tChunk to socket socketY with message "nextChunk"
end if
repeat while tWrite is empty #declare tWrite
wait for messages
end repeat
______________
and add this handler:
_________________
on nextChunk
if length(data)>4096 then
put char 1 to 4096 of data into tChunk
delete char 1 to 4096 in data
write tChunk to socket socketY with message "nextChunk"
else
 put data into tChunk
write tChunk to socket socketY
put "true" into tWrite
end if
end nextChunk
______________


Regards, Andu
_______________________
[EMAIL PROTECTED]


Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to