30 #ifndef __ZMQ_MECHANISM_HPP_INCLUDED__ 31 #define __ZMQ_MECHANISM_HPP_INCLUDED__ 98 size_t add_property (
unsigned char *ptr,
const char *name,
99 const void *value,
size_t value_len)
const;
106 const unsigned char *ptr_,
size_t length,
bool zap_flag =
false);
115 virtual int property (
const std::string& name_,
116 const void *value_,
size_t length_);
void set_peer_identity(const void *id_ptr, size_t id_size)
mechanism_t(const options_t &options_)
virtual int process_handshake_command(msg_t *msg_)=0
bool check_socket_type(const std::string &type_) const
virtual status_t status() const =0
metadata_t::dict_t zmtp_properties
metadata_t::dict_t zap_properties
int parse_metadata(const unsigned char *ptr_, size_t length, bool zap_flag=false)
virtual int encode(msg_t *)
std::basic_string< unsigned char > blob_t
void peer_identity(msg_t *msg_)
const char * socket_type_string(int socket_type) const
virtual int zap_msg_available()
virtual int property(const std::string &name_, const void *value_, size_t length_)
virtual int next_handshake_command(msg_t *msg_)=0
virtual int decode(msg_t *)
size_t add_property(unsigned char *ptr, const char *name, const void *value, size_t value_len) const
void set_user_id(const void *user_id, size_t size)
blob_t get_user_id() const
const metadata_t::dict_t & get_zap_properties()
const metadata_t::dict_t & get_zmtp_properties()