ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

send data between two directly connected computer

my application requires the host computer to transfer data to the client computer at a rate of 20mbyte/s. datasocket proved to be too slow. and tcp/ip does close to what i want, but it puts a big load on the host computer's cpu, which i prefer not to happen, since there is other task the host computer needs to perform.

i'm currently trying to use UDP. seems like the maximum datagram size i can send at a time is 65535 bytes. so for 20mbyte of data i have to send 400 chunks. but somehow i have to put a wait (~5-10ms) between two sending. if not, i always get an error 55: network in progress. in addition, due to UDP's lossy nature, i have to add some kind of handshake scheme to confirm data integrity. what would b
e a good stragedy to get all this to work?

another thing i'm considering is to have a direct network card to network card connection between the two computers. has anyone tried this? will that be a better solution? also once the two computers are directly connected, what protocol should i use to transfer data between them?

the two computers are connected to a giabit LAN and both computers have a gigbit ethernet card installed.
0 Kudos
Message 1 of 3
(2,849 Views)
Since the PC's are connected through a gigabit network, then why not tranfser the files using FTP.

FTP servers are easy to setup and run. For instance, Win-XP comes with an FTP server. You simply have to install it (can be done at any time).

JLV
Message 2 of 3
(2,849 Views)
If you can log the data to file fast enough you could just share a directory between the two computers.

Regards,
Ryan K.
0 Kudos
Message 3 of 3
(2,849 Views)