The initial point-of-contact with a port.
More...
#include <yarp/os/Face.h>
The initial point-of-contact with a port.
Definition at line 23 of file Face.h.
◆ Face()
◆ ~Face()
virtual yarp::os::Face::~Face |
( |
| ) |
|
|
virtualdefault |
◆ close()
virtual void yarp::os::Face::close |
( |
| ) |
|
|
pure virtual |
◆ getLocalAddress()
virtual Contact yarp::os::Face::getLocalAddress |
( |
| ) |
const |
|
inlinevirtual |
Get address after open(), if more specific that the address provided to open() - otherwise an invalid address is returned.
- Returns
- an address
Reimplemented in yarp::os::impl::TcpFace.
Definition at line 86 of file Face.h.
◆ open()
virtual bool yarp::os::Face::open |
( |
const Contact & |
address | ) |
|
|
pure virtual |
Start listening to the given address.
- Parameters
-
address | the parameters needed for listening. E.g. for TCP, this would contain a socket number. |
- Returns
- true on success.
Implemented in yarp::os::impl::TcpFace, and yarp::os::impl::FakeFace.
◆ read()
◆ write()
Try to reach out and talk to someone.
- Parameters
-
address | parameters describing destination. For example, for TCP this would contain a machine name/IP address, and a socket number. |
- Returns
- a protocol object to talk with, or nullptr on failure.
Implemented in yarp::os::impl::TcpFace, and yarp::os::impl::FakeFace.
The documentation for this class was generated from the following file:
- src/libYARP_os/src/yarp/os/Face.h