You can't develop an OPC server with DataSocket. DataSocket is a client for OPC, but can't be a server. You can connect to any OPC server and read data items, but you can't be the server.
To be an OPC client with DataSocket, just use the ConnectTo function with a URL of "opc:\\\.
Best Regards,
Chris Matthews
National Instruments