I'm trying to set TCP's SO_SNDTIMEO in Python. Based on the socket documentation here (http://docs.python.org/2/library/socket.html), it seems as though I should use setsockopt.
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 (http://docs.python.org/2/library/struct.html#module-struct), as the documentation recommends. However, I'm not sure what struct I should actually be using to set the option. Anyone have any thoughts?
(I've also tried passing both strings and integers for the third argument.) Thanks!