implemented nn_getsockopt