rohdeschwarz  0.2.0
TCPIP socket library for Rohde & Schwarz instrument control
Socket

The rohdeschwarz::busses::socket namespace uses TCPIP for instrument I/O.

Header

// optional
rohdeschwarz::busses::Socket Socket
Definition: main.cpp:13
rohdeschwarz::busses::socket::Socket class definition

Basic Use

Basic use is as follows:

// create open socket
Socket socket(HOST, PORT);
// print instrument id string
std::cout << socket.query("*IDN?\n");
const int PORT
Definition: main.cpp:23
const char * HOST
Definition: main.cpp:22

See examples/socket/README.md for a complete basic sockets example.

References

class header
rohdeschwarz::busses::socket::Address address.hpp
rohdeschwarz::busses::socket::Buffer buffer.hpp
rohdeschwarz::busses::socket::Socket socket.hpp
rohdeschwarz::busses::socket::system_error socket.hpp