39int TcpAcceptor::open(
const Contact& address)
43 if (get_handle() < 0) {
55 return shared_open(address);
61int TcpAcceptor::shared_open(
const Contact& address)
75 if (listen(get_handle(),
BACKLOG) < 0) {
94 port_number =
static_cast<int>(
ntohs(
sin.sin_port));
122int TcpAcceptor::close()
126 if (get_handle() != -1) {
127 result =
::close(get_handle());
void sigchld_handler(int)
An error handler that reaps the zombies.
A mini-server for performing network communication in the background.
void close() override
Stop port activity.
BufferedPort()
Constructor.
#define yCError(component,...)
#define yCDebug(component,...)
#define YARP_OS_LOG_COMPONENT(name, name_string)
The components from which ports and connections are built.
An interface to the operating system, including Port based communication.