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. More... | |
| void | close () override |
| Stop listening. More... | |
| InputProtocol * | read () override |
| Block and wait for someone to talk to us. More... | |
| OutputProtocol * | write (const Contact &address) override |
| Try to reach out and talk to someone. More... | |
Public Member Functions inherited from yarp::os::Face | |
| Face ()=default | |
| Constructor. More... | |
| virtual | ~Face ()=default |
| Destructor. More... | |
| virtual Contact | getLocalAddress () const |
| Get address after open(), if more specific that the address provided to open() - otherwise an invalid address is returned. More... | |
A dummy Face for testing purposes.
Definition at line 22 of file FakeFace.h.
|
overridevirtual |
|
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 18 of file FakeFace.cpp.
|
overridevirtual |
Block and wait for someone to talk to us.
Implements yarp::os::Face.
Definition at line 29 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 35 of file FakeFace.cpp.