In C++, you would just set the URL property of the CNiDataSocket object to a URL. For example, if you wanted to read from the National Instruments DataSocket weather server, you could set the URL to "dstp://weather.natinst.com/weather/current". Take a look at the DataSocket examples that ship with the Measurement Studio C++ libraries for some sample code.
- Elton