|
| std::string | version () |
| | Installed gclib version.
|
| std::string | addresses () |
| | Show address, model, and serial of detected controllers, where available. Detected controllers are newline-separated. Each line is comma-separated.
|
| std::string | ip_requests () |
| | Show MAC address, model, and serial of all controllers requesting IP addresses. Detected controllers are newline-separated. Use assign_ip() to assign an IP address to controllers returned by this method.
|
| void | assign_ip (std::string mac, std::string ip) |
| void | force_gcaps (bool on) |
| | Force future library calls to use either gcaps or direct connections.
|
| std::string | gcaps_version () |
| | Installed gcaps version, as reported by current gcaps server.
|
| std::string | list_servers () |
| | List available gcaps servers separated by newline.
|
| std::string | server () |
| | Current gcaps server, or an empty string if connected to the local gcaps server.
|
| void | set_server (std::string name={}) |
| std::string | published () |
| | Return name of local gcaps server, or an empty string if unpublished.
|
| void | set_published (std::string name={}) |
| | Publish local gcaps server as name, or unpublish if name is empty.
|
| std::string addresses |
( |
| ) |
|
|
inline |
Show address, model, and serial of detected controllers, where available. Detected controllers are newline-separated. Each line is comma-separated.
Available information by connection type:
- Ethernet connections show address, model, and serial.
- USB connections show address and model.
- Serial and PCI connections show address only.
Example output:
192.168.0.40, DMC4040 Rev 1.3i, 10601
COM5, DMC-41x3
GALILPCI0
- Returns
- std::string Newline-separated info on detected controllers.
Definition at line 261 of file gclib.hpp.
| void force_gcaps |
( |
bool | on | ) |
|
|
inline |
Force future library calls to use either gcaps or direct connections.
The default behavior of gclib is to prefer gcaps, but fall back to direct operations when gcaps is not running. This method allows disabling the default behavior process-wide, but cannot be undone.
- Parameters
-
| on | If true, all future gclib calls will fail if gcaps not found, rather than falling back to direct operations. If false, gcaps will not be used for any future gclib calls. |
Definition at line 287 of file gclib.hpp.