Instrument Control Lib
Framework to control Oscilloscopes, SMUs, Function Generators and DC Powersupplies via Ethernet.
http::detail::Socket Class Referencefinal

#include <HTTPRequest.h>

Collaboration diagram for http::detail::Socket:
Collaboration graph

Public Types

using Type = int
 

Public Member Functions

 Socket (const InternetProtocol internetProtocol)
 
 ~Socket ()
 
 Socket (Socket &&other) noexcept
 
Socketoperator= (Socket &&other) noexcept
 
void connect (const struct sockaddr *address, const socklen_t addressSize, const std::int64_t timeout)
 
std::size_t send (const void *buffer, const std::size_t length, const std::int64_t timeout)
 
std::size_t recv (void *buffer, const std::size_t length, const std::int64_t timeout)
 

Static Public Attributes

static constexpr Type invalid = -1
 

Member Typedef Documentation

◆ Type

Constructor & Destructor Documentation

◆ Socket() [1/2]

http::detail::Socket::Socket ( const InternetProtocol  internetProtocol)
inlineexplicit
Here is the call graph for this function:

◆ ~Socket()

http::detail::Socket::~Socket ( )
inline

◆ Socket() [2/2]

http::detail::Socket::Socket ( Socket &&  other)
inlinenoexcept

Member Function Documentation

◆ connect()

void http::detail::Socket::connect ( const struct sockaddr *  address,
const socklen_t  addressSize,
const std::int64_t  timeout 
)
inline

◆ operator=()

Socket& http::detail::Socket::operator= ( Socket &&  other)
inlinenoexcept

◆ recv()

std::size_t http::detail::Socket::recv ( void *  buffer,
const std::size_t  length,
const std::int64_t  timeout 
)
inline

◆ send()

std::size_t http::detail::Socket::send ( const void *  buffer,
const std::size_t  length,
const std::int64_t  timeout 
)
inline

Member Data Documentation

◆ invalid

constexpr Type http::detail::Socket::invalid = -1
staticconstexpr

The documentation for this class was generated from the following file: