20 SocketZyre(std::string name =
"no_name", std::map<std::string, std::string> headers = {});
29 int push(std::string, std::string);
47 std::string
header(
const char * pKey)
const {
return mHeaders.find(pKey)->second; }
52 std::map<std::string, std::string>
mHeaders = {};
zyre_t * mpSocket
Zyre instance.
virtual int push(Message *)
Push message.
SocketZyre(std::string name="no_name", std::map< std::string, std::string > headers={})
virtual Message * pull()
Pull message.
virtual int disconnect() final
Disconnect function.
virtual zyre_t * zyre() const
Returns zyre pointer.
virtual int connect() final
Connect function.
std::string header(const char *pKey) const
Returns value for key from header.
void port(int newPort)
Set zyre port.
std::map< std::string, std::string > mHeaders
List of headers.
int port() const
Get zyre port.
virtual zsock_t * socket() const
Returns zyre socket pointer.