Problem: Duplicated code

Solution: set_curve_key method in options_t struct with little
improvement in switch-case block
This commit is contained in:
Wojciech Kula
2016-12-16 16:44:31 +01:00
parent d514bb598a
commit 022eeaf33d
2 changed files with 34 additions and 71 deletions

View File

@@ -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;