YARP
Yet Another Robot Platform
yarp::os::impl::posix::TcpAcceptor Class Reference

#include <yarp/os/impl/posix/TcpAcceptor.h>

Public Member Functions

 TcpAcceptor ()=default
 
virtual ~TcpAcceptor ()=default
 
int open (const yarp::os::Contact &address)
 
int connect (const yarp::os::Contact &address)
 
int close ()
 
int accept (TcpStream &new_stream)
 Accept connection and set field for clientAddress. More...
 
int get_port_number ()
 

Protected Member Functions

int shared_open (const yarp::os::Contact &address)
 Open the server port and listen for clients. More...
 
int get_handle ()
 
void set_handle (int h)
 

Detailed Description

Definition at line 30 of file TcpAcceptor.h.

Constructor & Destructor Documentation

◆ TcpAcceptor()

yarp::os::impl::posix::TcpAcceptor::TcpAcceptor ( )
default

◆ ~TcpAcceptor()

virtual yarp::os::impl::posix::TcpAcceptor::~TcpAcceptor ( )
virtualdefault

Member Function Documentation

◆ accept()

int TcpAcceptor::accept ( TcpStream new_stream)

Accept connection and set field for clientAddress.

Definition at line 110 of file TcpAcceptor.cpp.

◆ close()

int TcpAcceptor::close ( )

Definition at line 125 of file TcpAcceptor.cpp.

◆ connect()

int yarp::os::impl::posix::TcpAcceptor::connect ( const yarp::os::Contact address)

◆ get_handle()

int yarp::os::impl::posix::TcpAcceptor::get_handle ( )
inlineprotected

Definition at line 53 of file TcpAcceptor.h.

◆ get_port_number()

int yarp::os::impl::posix::TcpAcceptor::get_port_number ( )
inline

Definition at line 45 of file TcpAcceptor.h.

◆ open()

int TcpAcceptor::open ( const yarp::os::Contact address)

Definition at line 42 of file TcpAcceptor.cpp.

◆ set_handle()

void yarp::os::impl::posix::TcpAcceptor::set_handle ( int  h)
inlineprotected

Definition at line 58 of file TcpAcceptor.h.

◆ shared_open()

int TcpAcceptor::shared_open ( const yarp::os::Contact address)
protected

Open the server port and listen for clients.

Definition at line 64 of file TcpAcceptor.cpp.


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