Communicating with a port via TCP.
More...
#include <yarp/os/impl/TcpFace.h>
Communicating with a port via TCP.
Definition at line 26 of file TcpFace.h.
◆ TcpFace()
◆ ~TcpFace()
◆ close()
◆ getLocalAddress()
Contact TcpFace::getLocalAddress |
( |
| ) |
const |
|
overridevirtual |
Get address after open(), if more specific that the address provided to open() - otherwise an invalid address is returned.
- Returns
- an address
Reimplemented from yarp::os::Face.
Definition at line 151 of file TcpFace.cpp.
◆ open()
bool TcpFace::open |
( |
const Contact & |
address | ) |
|
|
overridevirtual |
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.
Implements yarp::os::Face.
Definition at line 36 of file TcpFace.cpp.
◆ 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.
Implements yarp::os::Face.
Definition at line 123 of file TcpFace.cpp.
◆ auth
The documentation for this class was generated from the following files: