|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
10 #ifndef YARP_OS_IMPL_MCASTCARRIER_H
11 #define YARP_OS_IMPL_MCASTCARRIER_H
48 std::string
getName()
const override;
76 #endif // YARP_OS_IMPL_MCASTCARRIER_H
void removeSender(const std::string &key)
bool sendHeader(ConnectionState &proto) override
Write a header appropriate to the carrier to the connection, followed by any carrier-specific data.
std::string getName() const override
Get the name of this connection type ("tcp", "mcast", "shmem", ...)
A base class for connection types (tcp, mcast, shmem, ...) which are called carriers in YARP.
DgramTwoWayStream * stream
bool respondToHeader(ConnectionState &proto) override
Respond to the header.
bool isActive() const override
Check if carrier is alive and error free.
Carrier * create() const override
Factory method.
bool becomeMcast(ConnectionState &proto, bool sender)
int getSpecifierCode() const override
void addSender(const std::string &key)
bool expectExtraHeader(ConnectionState &proto) override
Receive any carrier-specific header.
static ElectionOf< PeerRecord< McastCarrier > > * caster
static ElectionOf< PeerRecord< McastCarrier > > & getCaster()
bool isBroadcast() const override
Check if this carrier uses a broadcast mechanism.
bool takeElection()
takeElection, this function is called when the elect mcast carrier dies and pass the write buffers to...
A stream abstraction for datagram communication.
Communicating between two ports via UDP.
Pick one of a set of peers to be "active".
The basic state of a connection - route, streams in use, etc.
bool expectReplyToHeader(ConnectionState &proto) override
Process reply to header, if one is expected for this carrier.
Communicating between two ports via MCAST.
The main, catch-all namespace for YARP.