flat assembler
Message board for the users of flat assembler.

Index > Windows > file transmission

Author
Thread Post new topic Reply to topic
HarryTuttle



Joined: 26 Sep 2003
Posts: 211
Location: Poland
HarryTuttle
what a difference between WriteFile into a connected socket and TransmitFile

which API function is better and why?


best weekend! (for codding:)

_________________
Microsoft: brings power of yesterday to computers of today.
Post 15 Oct 2004, 15:52
View user's profile Send private message Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1137
Location: Russian Federation
comrade
TransmitFile utilizes special caches, i think
Post 15 Oct 2004, 16:14
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
vbVeryBeginner



Joined: 15 Aug 2004
Posts: 884
Location: \\world\asia\malaysia
vbVeryBeginner
from PSDK
========
Remarks
The Windows NT Server/Windows 2000 Server optimizes the TransmitFile function for high performance. The Windows NT Workstation/Windows 2000 Professional optimizes the function for minimum memory and resource utilization. Expect better performance results when using TransmitFile on Windows NT Server/Windows 2000 Server.

Note TransmitFile is not functional on transports that perform their own buffering. Transports with the TDI_SERVICE_INTERNAL_BUFFERING flag set, such as ADSP, perform their own buffering. Because TransmitFile achieves its performance gains by sending data directly from the file cache. Transports that run out of buffer space on a particular connection are not handled by TransmitFile, and as a result of running out of buffer space on the connection, TransmitFile returns STATUS_DEVICE_NOT_READY.
Post 15 Oct 2004, 17:20
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.