LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data socket VS TCP/IP

Hi all

I have a question about Data socket and TCP/IP. I know that Data socket is a technology based on TCP/IP. Why Data socket need a server to handle communication? That is very trouble when I want to write a two way communication program because I need to open data socket server at each machine and need to config it's setting. Why TCP/IP no need to use a server to handle communication? Are there any advantages of Data socket over TCP/IP?

Bill
0 Kudos
Message 1 of 4
(4,465 Views)
The biggest advantage is that because of the way DS is integrated into LV it's very easy to use--often taking no programming to implement. However, it doesn't sound like you need DS. You aren't building a client/sever type application, you're building a peer/peer application so utilizing a client/server protocol would be, at best, a force-fit. Using the lower-level VIs to create TCP connections between the two machines is easy and would be much more efficient. Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 2 of 4
(4,465 Views)
Thanks, mike. About datasocket, if I have two writers send data to the reader at the same time. Does the datasocket process one data and put the other in buffer or lose one of them? How can I handle it?. Also, how to ensure the reader is received the writer data. Do I need to send back an acknowledgement to the reader?
0 Kudos
Message 3 of 4
(4,465 Views)
Ok, there's another difference. The DS server doesn't "send" data anywhere. It simply makes it available to whoever wants to read it. Without some additional protocol-related code there is no way receiver can be sure its gotten all the data.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 4 of 4
(4,465 Views)