Retrieving Connection Properties
How to Retrieve Connection Properties
To retrieve the properties of a connection object, use the get function.
This function returns different values depending upon which data server
you are using.
Back to Top
Example: Retrieving Bloomberg Connection Object Properties
Establish a connection, c, to a Bloomberg data
server:
c = bloomberg
The following command returns the list of all valid connection
properties of c, and their values:
p = get(c)
p =
connection: 84554360
ipaddress: '123.456.54.123'
port: 8194
socket: 248
version: 1.8000
The get function can return specific properties
of a connection object. For example, to obtain the port number and
version of the connection object c run the command:
p = get(c,{'Port';'Version'})
p =
port: 8194
version: 1.8000
Use the following command to return a single property, in this
case, the connection handle:
p = get(c,'Connection')
p =
84554360
Note
A single property is not returned as a structure. |
Back to Top
 | Verifying Connections | | Disconnecting from Data Servers |  |
Now On Demand
Network with industry peers and learn the latest applications of the leading software product for computational finance.