Socket data receiving

Wessel

Member
Joined
Nov 14, 2003
Messages
20
Location
The Netherlands
Hello,

I made a little socket wrapper class for a file transfer program. If i test the transfer locally (so on my own computer) data is transferred and received perfectly. But if i try it over a network, it seems data is not received properly.

For example, i used pictures for the transfer data, if i did it locally, the original and transferred file were identical while the pictures transferred over network were all scrambled and not correct. Does anyone have a solution for this? Perhaps a little header for each packet?
 
I fixed it. I used another class, "TCPClient" and bufferedstreams, the performance is incredible: over 70% network usage on a 100mbit network. With my vb6 file transfer application i didnt even reach 20%. The code is very simple, you just "write" bytes to the stream in a loop untill bufferedstream returns zero, and on the other side receive it in a loop untill bufferedstream returns zero :). The files are 100% complete and received properly.
 

Similar threads

P
Replies
0
Views
176
Policy standard local admin account with Active Di
P
Back
Top