rohdeschwarz  0.2.0
TCPIP socket library for Rohde & Schwarz instrument control
Classes | Typedefs | Functions
rohdeschwarz::busses::socket Namespace Reference

Classes

class  Socket
 A class for managing synchronous TCP IP sockets. More...
 

Typedefs

using system_error = boost::system::system_error
 System error exception. More...
 

Functions

boost::asio::ip::basic_resolver< boost::asio::ip::tcp >::results_type resolve (const std::string &host, int port, boost::asio::io_context &io_context)
 Resolves TCP IP endpoint(s) from host, port. More...
 

Typedef Documentation

◆ system_error

using rohdeschwarz::busses::socket::system_error = typedef boost::system::system_error

System error exception.

This is a reference to boost::system::system_error provided for convenience

Definition at line 32 of file socket.hpp.

Function Documentation

◆ resolve()

boost::asio::ip::basic_resolver< boost::asio::ip::tcp >::results_type rohdeschwarz::busses::socket::resolve ( const std::string &  host,
int  port,
boost::asio::io_context &  io_context 
)

Resolves TCP IP endpoint(s) from host, port.

Parameters
[in]hostHost name or IP address
[in]portTCP port
[in]io_contextIO Context for scheduling resolve()
Returns
A non-empty list if endpoints could be resolved; an empty list otherwise

Definition at line 15 of file helpers.cpp.