Bugzilla – Bug 3237
socket_recv2(_socket, _data[], _length);
Last modified: 2013-06-22 13:00:55 PDT
I'm requesting for socket_recv2(_socket, _data[], _length); For example: Lengh of downloaded data is 4. I'm now using: <code> new iBuffer[2]; while( socket_recv2(iSocketId, iBuffer, 2)>0 ) write_file("test.txt", iBuffer); // this is called only twice. </code> In other words can you make it so already receved data is removed from the socket, what will give space for the new data. (something like fgetc(fileid)) =)
you check before you receive the data if the buffer changed http://www.amxmodx.org/funcwiki.php?go=func&id=492