TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
miron-a
NA
4
0
The best buffer size for transfering file
Dec 27 2004 12:09 PM
Hi all, I'm using the following function to trasfer file via lan between two computers: byte[] TransferBuffer = new byte[BUFFER_SIZE] ; TCPsocket = new TcpClient(); NetStream = TCPsocket.GetStream() ; while( len > 0 ) { len=FileToTransfer.Read(TransferBuffer,0,TransferBuffer.Length) ; NetStream.Write(TransferBuffer,0,len); TotalSent=TotalSent+len ; } My quastion is: what is the best "BUFFER_SIZE" to use to have the best performence ? to get the fastest transfering rate ? thanx all, Miro
Reply
Answers (
0
)
Application configuration file for C# class library
number with point