title: Python set tcp send timeout
body: <p>I'm trying to set TCP's SO_SNDTIMEO in Python.  Based on the socket documentation here (<a href="http://docs.python.org/2/library/socket.html" rel="nofollow">http://docs.python.org/2/library/socket.html</a>), it seems as though I should use setsockopt.</p>
  
  <p>However, I'm having a difficult time understanding what to pass in for the third value parameter.   I'm trying to use the struct module (<a href="http://docs.python.org/2/library/struct.html#module-struct" rel="nofollow">http://docs.python.org/2/library/struct.html#module-struct</a>), as the documentation recommends.  However, I'm not sure what struct I should actually be using to set the option.  Anyone have any thoughts?</p>
  
  <p>(I've also tried passing both strings and integers for the third argument.) Thanks!</p>