hi all,

i'm writing two apps, a server under win2k and a client for windows CE. I need maximum speed for jpeg tranfer (jpeg of about 30k) from server to client. Using socket, on server i current

-open the file
-read the file to buffer
-transmit size
-transmit jpeg from buffer

Anyone now a faster way ? Maybe the file opening and reading could be done in a differebt thread to have it already the memory buffer .. maybe send size and jpeg togheter...

Any help appreciated.

Posted on 2003-04-04 03:38:31 by Bit7
On Win2k server edition the Winsock 2 API TransmitFile is very well optimized, and even on normal 2k it's fast and easy to use :)

Don't know much about CE so I can't help you on the receiving end.
Posted on 2003-04-04 09:15:01 by Qweerdy
You can use the WSAAsyncSelect function to set up a non-blocking socket. This helps you avoid having to create new threads.
Posted on 2003-04-04 11:13:46 by Sephiroth3
thanks for good suggestions !
Posted on 2003-04-06 15:03:56 by Bit7