|
salsa
0.4.15
|
Salsa zyre socket class. More...
#include <SocketZyre.hh>
Public Member Functions | |
| SocketZyre (std::string name="no_name", std::map< std::string, std::string > headers={}) | |
| virtual | ~SocketZyre () |
| virtual int | connect () final |
| Connect function. More... | |
| virtual int | disconnect () final |
| Disconnect function. More... | |
| virtual Message * | pull () |
| Pull message. More... | |
| virtual int | push (Message *) |
| Push message. More... | |
| int | push (std::string, std::string) |
| Push message to UUID. | |
| void | port (int newPort) |
| Set zyre port. | |
| int | port () const |
| Get zyre port. | |
| virtual zyre_t * | zyre () const |
| Returns zyre pointer. | |
| virtual zsock_t * | socket () const |
| Returns zyre socket pointer. | |
| std::string | header (const char *pKey) const |
| Returns value for key from header. | |
Static Public Member Functions | |
| static std::shared_ptr< spdlog::logger > | getConsoleOutput () |
| Get console output. | |
| static void | setConsoleLevel (spdlog::level::level_enum level) |
| Sets console log level. | |
Private Attributes | |
| zyre_t * | mpSocket = nullptr |
| Zyre instance. | |
| int | mPort = 0 |
| Port for Zyre. | |
| std::map< std::string, std::string > | mHeaders = {} |
| List of headers. | |
Static Private Attributes | |
| static std::shared_ptr< spdlog::logger > | mspConsoleLogger = spdlog::stdout_color_mt("salsa") |
| Pointer to spd logger. | |
Salsa zyre socket class.
Definition at line 18 of file SocketZyre.hh.
| Salsa::SocketZyre::SocketZyre | ( | std::string | name = "no_name", |
| std::map< std::string, std::string > | headers = {} |
||
| ) |
Constructor with zyre name
| name | Zyre name |
| headers | List of headers |
Definition at line 5 of file SocketZyre.cc.
|
virtual |
|
finalvirtual |
Connect function.
Connect zyre to the network
Implements Salsa::Socket.
Definition at line 33 of file SocketZyre.cc.
References mpSocket.
|
finalvirtual |
Disconnect function.
Disconnect zyre from network
Implements Salsa::Socket.
Definition at line 43 of file SocketZyre.cc.
References mpSocket.
Referenced by ~SocketZyre().
|
virtual |
Pull message.
Pull message from the network
Implements Salsa::Socket.
Definition at line 56 of file SocketZyre.cc.
References mpSocket.
|
virtual |
Push message.
Push message to the network
Implements Salsa::Socket.
Definition at line 66 of file SocketZyre.cc.