mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-30 13:47:13 +01:00
Problem: Duplicated code
Solution: set_curve_key method in options_t struct with little improvement in switch-case block
This commit is contained in:
@@ -56,6 +56,8 @@ namespace zmq
|
||||
{
|
||||
options_t ();
|
||||
|
||||
int set_curve_key(uint8_t * destination, const void * optval_, size_t optvallen_);
|
||||
|
||||
int setsockopt (int option_, const void *optval_, size_t optvallen_);
|
||||
int getsockopt (int option_, void *optval_, size_t *optvallen_) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user