A dummy Face for testing purposes. More...
#include <yarp/os/impl/FakeFace.h>
Inheritance diagram for yarp::os::impl::FakeFace:Public Member Functions | |
| bool | open (const Contact &address) override |
| Start listening to the given address. | |
| void | close () override |
| Stop listening. | |
| InputProtocol * | read () override |
| Block and wait for someone to talk to us. | |
| OutputProtocol * | write (const Contact &address) override |
| Try to reach out and talk to someone. | |
Public Member Functions inherited from yarp::os::Face | |
| Face ()=default | |
| Constructor. | |
| virtual | ~Face ()=default |
| Destructor. | |
| virtual Contact | getLocalAddress () const |
| Get address after open(), if more specific that the address provided to open() - otherwise an invalid address is returned. | |
A dummy Face for testing purposes.
Definition at line 17 of file FakeFace.h.
|
overridevirtual |
Start listening to the given address.
| address | the parameters needed for listening. E.g. for TCP, this would contain a socket number. |
Implements yarp::os::Face.
Definition at line 15 of file FakeFace.cpp.
|
overridevirtual |
Block and wait for someone to talk to us.
Implements yarp::os::Face.
Definition at line 26 of file FakeFace.cpp.
|
overridevirtual |
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. |
Implements yarp::os::Face.
Definition at line 32 of file FakeFace.cpp.