| Datafeed Toolbox | ![]() |
Retrieving Connection Properties
To retrieve the properties of a connection object, use the command get. This command returns different values depending upon which data server is being used.
Example: Retrieving Bloomberg Connection Properties
c = bloomberg(8194, '123.456.54.123')
p = get(c)
returns the list of all valid connection properties and their values associated with the connection object c.
p =
connection: 84554360
ipaddress: '123.456.54.123'
port: 8194
socket: 248
version: 1.8000
The get command can return specific properties of a connection object. For example, to obtain the port number and Bloomberg version for the connection object c, use the command
p = get(c,{'Port';'Version'})
p =
port: 8194
version: 1.8000
When returning a single property, for example, the connection handle, the command
p = get(c,'Connection')
p = 84554360
For a single returned property the output is not a structure.
| Verifying the Connection | Disconnecting from a Data Server | ![]() |