mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-24 00:49:48 +02:00
Implement socket_base_t::get_credential member function
The get_credential () member function returns credential for the last peer we received message for. The idea is that this function is used to implement user-level API.
This commit is contained in:
@@ -613,6 +613,9 @@ int zmq::curve_server_t::receive_and_process_zap_reply ()
|
||||
goto error;
|
||||
}
|
||||
|
||||
// Save user id
|
||||
set_user_id (msg [5].data (), msg [5].size ());
|
||||
|
||||
// Process metadata frame
|
||||
rc = parse_metadata (static_cast <const unsigned char*> (msg [6].data ()),
|
||||
msg [6].size ());
|
||||
|
||||
Reference in New Issue
Block a user