Hello,
There is a document in the NI Developer Zone entitled "Configuring a Datasocket Server" that should get you started in the right direction. There are also several Datasocket examples in the Developer Zone that demonstrate how to use Datasocket functionality within your LabVIEW program.
Make sure to check out the Developer Zone whenever you have any future application development questions.
Have a pleasant day.
Sincerely,
Darren Nattinger
Applications Engineer
National Instruments