title: Setting up socket timeout in nanomsg python
body: <p>I am having trouble setting the timeout properly on nanomsg python in the PUSH/PULL schema. I use the set socket option function and passing in a ctype object. Both set_sock_options return a success. Am I missing something?</p>
  
  <p>The sockets work to receive and send, but have an infinite timeout. When I use get_sock_option it returns the value I just set, so it seems my inputs have some sort of an effect.</p>
  
  <pre><code>NN_RCVTIMEO = 5
  NN_SNDTIMEO = 4
  NN_SOL_SOCKET = 0
  
  message = ""
  
  timeout = ctypes.create_string_buffer(b'500');
  
  #Bind input socket
  socket_in = nn_wrapper.nn_socket(AF_SP, PULL)
  sucess = nn_wrapper.nn_setsockopt(socket_in, NN_SOL_SOCKET, NN_RCVTIMEO, timeout)
  nn_wrapper.nn_bind(socket_in, 'tcp://127.0.0.1:64411')
  time.sleep(0.2)
  
  print("SUCESS?" + str(sucess))
  
  
  #Send inquiry
  socket_out = nn_wrapper.nn_socket(AF_SP, PUSH)
  sucess = nn_wrapper.nn_setsockopt(socket_out, NN_SOL_SOCKET, NN_SNDTIMEO, timeout)
  nn_wrapper.nn_connect(socket_out, 'tcp://127.0.0.1:64400')
  time.sleep(0.2)
  
  print("SUCESS?" + str(sucess))
  
  nn_wrapper.nn_send(socket_out, b'HELLO',0)
  
  #Received...
  bytes, message = nn_wrapper.nn_recv(socket_in, 0)
  
  nn_wrapper.nn_close(socket_in)
  nn_wrapper.nn_close(socket_out)
  </code></pre>