nn_setsockopt. parameter type checking. constants -> integer