I have modified Nokia Sockets Example (delivered with s60 sdk) and when I try to send binary data from file to socket, the buffer will run out of space.
This is how sending is done...
while (retval != KErrEof)
retval = file.Read(pos, filepart, 10);
if (filepart.Length() < 1) break;
pos = pos + 10;
TRAPD(err, iSocketsEngine->WriteL(filepart)); // engine of socketsex
if (err != KErrNone)
RDebug::Print(_L("ERROR: Image write"));
The sockets example writer only writes about first 100kt of file and then Leaves with error KSocketExampleOverFlow. Looks like CActiveShceduler does not give enough time to CSocketWriter. Should I do anything else in my code to be sure that all packets have been sent? I have tried my code on emulator and on device.