30int TcpAcceptor::open(
const Contact& address)
34 if (get_handle() < 0) {
46 return shared_open(address);
52int TcpAcceptor::shared_open(
const Contact& address)
66 if (listen(get_handle(),
BACKLOG) < 0) {
76 port_number =
static_cast<int>(
ntohs(
sin.sin_port));
104int TcpAcceptor::close()
108 if (get_handle() != -1) {
109 result =
::close(get_handle());
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.