
06-26-2006, 07:52 PM
|
 |
Underclocked lifestyle
Forum Leader * Guru *
|
|
Join Date: Feb 2005
Location: Michigan, USA
Posts: 4,193
|
|
|
Yes, you can send large files. I've sent multimegabyte files just fine.
You can't just blast a bunch of bytes at the Winsock control and expect miracles though. About 16K at a blast seems close to optimal, but you have to drive the process by SendComplete events: blast a block, then when that send completes you blast out another.
No point at all in sucking the whole file into memory, read it a chunk at a time. That's why files have the ability to be read other than all at once.
Geeze.
|
|