The initial point-of-contact with a port. More...
#include <yarp/os/Face.h>
Inheritance diagram for yarp::os::Face:Public Member Functions | |
| Face ()=default | |
| Constructor. | |
| virtual | ~Face ()=default |
| Destructor. | |
| virtual bool | open (const Contact &address)=0 |
| Start listening to the given address. | |
| virtual void | close ()=0 |
| Stop listening. | |
| virtual InputProtocol * | read ()=0 |
| Block and wait for someone to talk to us. | |
| virtual OutputProtocol * | write (const Contact &address)=0 |
| Try to reach out and talk to someone. | |
| virtual Contact | getLocalAddress () const |
| Get address after open(), if more specific that the address provided to open() - otherwise an invalid address is returned. | |
|
default |
Constructor.
|
virtualdefault |
Destructor.
Stop listening.
Implemented in yarp::os::impl::FakeFace, and yarp::os::impl::TcpFace.
Get address after open(), if more specific that the address provided to open() - otherwise an invalid address is returned.
Reimplemented in yarp::os::impl::TcpFace.
Start listening to the given address.
| address | the parameters needed for listening. E.g. for TCP, this would contain a socket number. |
Implemented in yarp::os::impl::FakeFace, and yarp::os::impl::TcpFace.
|
pure virtual |
Block and wait for someone to talk to us.
Implemented in yarp::os::impl::FakeFace, and yarp::os::impl::TcpFace.
|
pure virtual |
Try to reach out and talk to someone.
| address | parameters describing destination. For example, for TCP this would contain a machine name/IP address, and a socket number. |
Implemented in yarp::os::impl::FakeFace, and yarp::os::impl::TcpFace.