12#include <sys/socket.h>
28TcpStream::TcpStream() =
default;
30TcpStream::~TcpStream() =
default;
35 if (get_handle() == -1) {
45 if (::getsockname(get_handle(), &sa,
reinterpret_cast<socklen_t*
>(&len)) == -1) {
54 if (::getpeername(get_handle(), &sa,
reinterpret_cast<socklen_t*
>(&len)) == -1) {
A mini-server for performing network communication in the background.
#define yCError(component,...)
#define YARP_OS_LOG_COMPONENT(name, name_string)
The components from which ports and connections are built.